Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-30-2011, 07:48 PM   #1
markhad
Senior Member
 
Join Date: Sep 2011
Posts: 111
Default Paypal Integration

I am currently writing a Flash AS3 website where users upload file(s), I take payment, and when payment has been received, the files are emailed to me to be processed, all within the same SWF.

I can get the upload and email part all working nicely. My question is about the payment part. Ideally, I would like to use Paypal but the critical point is that payment and then confirmation must all be within the same SWF. If Paypal directs to another page and returns to a different URL (or the same one for that matter), the SWF would have ended which would be a problem for the emailing part.

Is there a solution for Paypal to take money within the same SWF and just allow further functions to run on confirmation?

I think Paypal Digital Goods might be the way to go, but any advcie would be garetfully receieved!

Thanks in advance.
markhad is offline   Reply With Quote
Old 10-30-2011, 07:58 PM   #2
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,988
Send a message via Skype™ to henke37
Default

Well, how else is the user supposed to securely enter their payment details if not on a page hosted by Paypal?

Hint: Any option that involves your page seeing the payment details is not secure.
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is offline   Reply With Quote
Old 10-30-2011, 08:12 PM   #3
markhad
Senior Member
 
Join Date: Sep 2011
Posts: 111
Default

Thank you for the reply. I do not fully understand but isn't paypal digital goods a sort of frame that is loaded within the swf?
markhad is offline   Reply With Quote
Old 10-31-2011, 02:07 PM   #4
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,988
Send a message via Skype™ to henke37
Default

You can not host a html page in Flash. That is a simple fact of life.

And from my quick research it looks like the PayPal solution you are trying to refer to is exactly that, a HTML page in an iframe.
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is offline   Reply With Quote
Old 10-31-2011, 02:29 PM   #5
markhad
Senior Member
 
Join Date: Sep 2011
Posts: 111
Default

ok, thanks. Will look at running a seperate SWF form the Paypal success page using a custom IPN field and mySQL to carry on from where I left off.
markhad is offline   Reply With Quote
Old 10-31-2011, 03:10 PM   #6
peptobismol
Senior Member
 
Join Date: Oct 2005
Posts: 746
Default

Paypal does have an API you can connect to from your server. So you can use a combo of flash and server-side scripting. The caveats are you have to have your website a sign certificate (https) and you'll have sign up with paypal's business plan.
peptobismol is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:45 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.