Ryan Campbell Flex/Flash Developer Blog

20Feb/0816

Understand Flex and PayPal API Integration at 360Flex

Need to get your Flex app talking to PayPal and have no idea how to do it? You're not alone! I spent days losing hair (and sleep) figuring out how to get Flex and PayPal to play nice with each other. I don't want anyone else to have to go through that madness.

I've received plenty of e-mails asking for advice and code examples on this topic. In response, I will be releasing a modified copy of the FlexStore sample app with a completed order screen using PayPal. At my presentation I will be giving a detailed step-by-step talk on how I got this working. Also, although I'm using PayPal in this example, the knowledge gained could be applied to using any secure payment API.

If you haven't registered for 360Flex yet, be sure to do so quickly (really quickly actually, I've heard there's only a few seats left). This will be my second time attending the conference and I can't wait to get there! Also, don't forgot to enter the API Contest for a chance to win some really great prizes.

See ya there and don't forget to say hello :)

Comments (16) Trackbacks (0)
  1. I will most definitely be in this one! :) See ya there!

  2. Hi,

    unfortunately I will not be able to attend 360Flex .
    I hope you will write in your blog about the Flex-PayPal code.

    Thanks
    Thiagu

  3. I am not able to attend either. I’m in need of paypal integration and hope you will blog it.

  4. Hello Ryan,

    I am using your 360flex_paypal code and used in my application, but I am getting the following error:

    (mx.rpc::Fault)#0
    errorID = 0
    faultCode = “Client.Error.DeliveryInDoubt”
    faultDetail = “Channel disconnected before an acknowledgement was received”
    faultString = “Channel disconnected”
    message = “faultCode:Client.Error.DeliveryInDoubt faultString:’Channel disconnected’

    faultDetail:’Channel disconnected before an acknowledgement was received’”
    name = “Error”
    rootCause = (null)

    please help me in resolving this as early as possible.

    Thanks & Regards,
    Nagesh Dudam.

  5. Hi Ryan:
    I would like to ask something about ur example code.

  6. I have the Flex-Google checkout integration done in a very nice manner and should be done with paypal as well in a couple of days. It is a bit “so not straight forward”. From my perspective Google checkout was a bigger pain in the …u know what.

  7. Hi Ryan,
    Im a beginner in flex, developing a shopping cart application i need to use the paypal in it.
    i have gone through the slides for the paypal integration you were using PHP . i have created the accounts in the sandbox

    Kindly help me how to use the API with Flex and Action script or html.
    Please guide me how to proceed with the process.

  8. Hello,

    I have been researching the integration of flex with paypal, and most solutions use PHP as the server side language, but I am not a PHP developer. Does anyone know of a Flex and paypal integration using Coldfusion? Thank you. Also, if anyone has some code on building a Flex shopping cart, I would appreciate it. Thank you.

    -Johnnie

  9. Hi Ryan,

    Any documentation on the steps for the integration Flex, paypal API, PHP would be appreciated.
    If I could see how it’s integrated in FlexStore that would be a bonus,

    I downloaded 360Paypal.zip but do not know how to integrate this in my application.

    thanks
    Your help would be gratly appreciated
    Daniel

  10. Hello …

    Is there good documentation somewhere on integrating PayPal into FLEX ecommerce applications, including shipping and tax information?

    Thank you!

  11. Is there a step-by-step instruction set for getting the Flex / Paypal integration going in my app? Thanks!

  12. Hello,

    Ryan… great work here!
    one question:
    Have you ever experienced unexpected multiple subsequent charges from paypal. Specifically someone pays once via doDirectPayment but their card is charged 2-4 times. I have been seeing this happen on about 2% of the transactions.

    Any ideas?
    Thank You in advance,
    Ted

  13. For those receiving the error above mentioned by Nagesh Dudam:

    You must have the curl libraries installed into your web server with PHP for the script to work. It uses cURL to send the data, AMF to transfer requests and results to and from Flex, and then simple Remoting service in Flex to access the AMF server created in PHP. This version uses the NVP (Name-Value Pair) API from Paypal, and the Name (key) and values are sent through the url address for communication. The AMF libraries have been provided by the author, and the server is programmed into the script. If anyone needs help with this, my email is wgjhstt247@gmail.com. I’d love to help.

    I just want to say to the author, THANK YOU A MILLION!

  14. hello,

    nagesh, this is ashik i am beginner of flex developing ,how can i create pay pal account .
    help me..

  15. Hey Ryan, could you provide a link to the source for your Flex-PayPal integration? It would be deeply appreciated and awesome. Thanks!

  16. Where to read and get the code ?


Leave a comment


No trackbacks yet.

Ryan Campbell

360|Flex DC


follow bobjim at http://twitter.com

Recent Posts

Categories

Archives