I have a custom shopping cart (coded in php) which lists individual items, quantities, item and total item prices, shipping and total amount. I want to integrate PayPal but I'm having trouble figuring out the steps required. I have the PayPal API and a PayPal Sandbox setup with a buyer and seller test account and signature setup and ready to go.
From what I can find out so far, I believe I need the following files:
SetExpressCheckout.php
GetExpressCheckoutDetails.php
DoExpressCheckoutPayment.php
Q1) Do I need a Website Payments Pro account or will the free business accounts work (i.e. website payments standard) or is the API independant of these two as long as the account type is 'business'?
Q2) Could anyone provide clear steps I need to follow once I have a shopping cart ready to checkout
I'm sorry I don't have any more details but if you need anything else, I will do my utmost to provide what I can. I'm pretty familiar with PHP, but have never worked with APIs before.
My shopping cart is actually for a photo gallery and there could be thousands of items so I can't use that indicidual 'add to cart' button of paypal. I will have all the items details, amounts, etc, stored but need some way to pass this information to PayPal to the show a summary and handle the payment. I was reading something about Name Value Pairs (NVP).
I found the following piece of code, but not sure if it's valid anymore (up-to-date):
Open in new window