0
votes

I have items and vendors table each vendors have different items to sell and all the vendors have their own email and password for login. I want to create shopping cart with PayPal when the user want to buy something they will click buy and it will add it to paypal shopping cart and then when they process to payment the money will go to the vendor. I'm not really sure how to start or is this good idea or not any suggestion?

1
There are a number of ways to handle that depending on your overall goal. Are you wanting to take a commission on the sale for yourself, or should the entire amount go to the vendor?Drew Angell
the amount will go all to the vendorblue_cat

1 Answers

0
votes

Based on the info provided I would recommend using the Express Checkout API. Specifically, you'll be using:

In the SEC and DECP request you'll use the PAYMENTINFO_n_SELLERPAYPALACCOUNTID parameter to specify the account the money should go to.

Using this method you will use your own API credentials in the API calls, and you will not need to worry about setting up permissions or anything for the vendors.

Since you're working with PHP I'd recommend using this PayPal PHP SDK. It will make the API calls very quick and easy for you.