# AS2 shopping cart and PayPal Web Pro integration

**URL:** <https://forum.kirupa.com/t/as2-shopping-cart-and-paypal-web-pro-integration/324257>\
**Category:** flash\
**Created:** [August 10, 2011, 9:26pm UTC](https://forum.kirupa.com/t/as2-shopping-cart-and-paypal-web-pro-integration/324257 "2011-08-10T21:26:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brij2136](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@brij2136](https://forum.kirupa.com/u/brij2136)\
**Post date:** [August 10, 2011, 9:26pm UTC](https://forum.kirupa.com/t/as2-shopping-cart-and-paypal-web-pro-integration/324257/1 "2011-08-10T21:26:38Z")

</div>

[FONT=Arial][SIZE=2][COLOR=#080000] [/COLOR][/SIZE][/FONT][FONT=Arial][SIZE=2][COLOR=#080000]I am familiar with communicating to PayPal Web Standard Payments from AS2, but not the API functions of Web Pro Payments. The php files I have are merely copies of php files I download from PayPal. Based on my readings, Web Pro API requires two payment options: Direct Payment and Express Checkout. Each option requires three separate php files. [/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=#080000]  
My references: [/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=#080000]WebProPayment information—\> [URL=“[https://cms.paypal.com/us/cgi-bin/?cmd=\_render-content&content\_ID=developer/e\_howto\_api\_WPWebsitePaymentsPro#id5ba04ce4-aa8e-4586-99b5-609f59141f56](https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPWebsitePaymentsPro#id5ba04ce4-aa8e-4586-99b5-609f59141f56)”][https://cms.paypal.com/us/cgi-bin/?cmd=\_render-content&content\_ID=developer/e\_howto\_api\_WPWebsitePaymentsPro#id5ba04ce4-aa8e-4586-99b5-609f59141f56](https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPWebsitePaymentsPro#id5ba04ce4-aa8e-4586-99b5-609f59141f56)

[/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=#080000]PHP file samples—\> [https://cms.paypal.com/us/cgi-bin/?cmd=\_render-content&content\_ID=developer/library\_code[/COLOR][/SIZE][/FONT]](https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_code%5B/COLOR%5D%5B/SIZE%5D%5B/FONT%5D)

[FONT=Arial][SIZE=2][COLOR=#080000]\*\*  
What I have:\*\*[/COLOR][/SIZE][/FONT]

[LIST=1][FONT=Arial][SIZE=2][COLOR=#080000]  
[_]Flash AS2 shopping cart, functional except for integration with PayPal, with accompanying XML files  
[_]PHP files for API NVP-Integration with PayPal Web Pro Payment (generic files downloaded from PayPal, the developer may or may not need)  
[_]PHP files for MySQL Integration and email communication for client’s database  
[_]SQL table  
[\*]A PayPal Sandbox account as well as a merchant account[/COLOR][/SIZE][/FONT]  
[/LIST]  
[FONT=Arial][SIZE=2][COLOR=#080000] **What I need:** [/COLOR][/SIZE][/FONT]

[LIST=1][FONT=Arial][SIZE=2][COLOR=#080000]  
[_]API Files that pass NVP parameters correctly to and from PayPal for both Express Checkout and Direct Payment methods.  
[_]API Files that pass NVP parameters correctly to additional PHP files that communicate with MySQL and send e-mail communication upon a complete transaction. (We assume that is the purpose of PayPal’s IPN feature.)[/COLOR][/SIZE][/FONT]  
[/LIST]  
[FONT=Arial][SIZE=2][COLOR=#080000] **Results I’m looking for:** [/COLOR][/SIZE][/FONT]

[LIST=1]  
[_][FONT=Arial][SIZE=2]Enable Express Checkout[/SIZE][/FONT]  
[_][FONT=Arial][SIZE=2]Enable Direct Payments[/SIZE][/FONT]  
[_][FONT=Arial][SIZE=2]Add order information to client’s database after payment confirmation[/SIZE][/FONT]  
[_][FONT=Arial][SIZE=2]Generate and deliver unique email to both buyer and client after payment confirmation[/SIZE][/FONT]  
[/LIST]  
\*\*\*\*I’m having difficulty following PayPal instructions or finding step-by-step what I need to do to make this happen. Does anyone have instructions to do this?
