Digital Motion dot net

Digital Media Production

Creating a paypal button for Flex 2

I may post my source of this eventually, but for now I’m just wondering if there is a better way to do this. I spent a long time searching, but had zero luck. The existing mechanisms to integrate a paypal button into a flash site require the URLLoader class which doesn’t exist in AS3.

After spending a bunch of time searching the flex and paypal sites, I was getting really discouraged.

Finally, I came up with this hack:

I use the ExternalInterface to “shell out” to javascript where I create the form that paypal needs dynamically in Javascript and then submit it (also dynamically). It works, but it really seems like a hack to me.

Is there a better way to do this?

1 Comment so far

  1. Joe Shell February 10th, 2008 3:43 pm

    Hi there,

    Any chance of getting the source on that?

    Cheers,

    Joe

Leave a reply