How can I send information to Paypal API PHP

Asked

Viewed 173 times

0

Well what I intend to do is to do the following, first, how can I send information to Paypal, through my PHP file of purchase value.

That is, the buyer selects the number of items and then click on Buy, how can I make paypal receive the purchase amount. That is if the buyer on the site selected items worth 25€, how can I pass this amount to Paypal, the 25€ and send a payment reference to later identify the user who paid.

  • Have you studied the Paypal API (https://developer.paypal.com/docs/api/), or tried using their PHP SDK (http://paypal.github.io/PayPal-PHP-SDK/)? Do you have any specific doubt?

  • Dude, I recommend you take a look at their API. Paypal has a very complete documentation (larger than Pagseguro or MOIP), so you should find no problem. The URL to help you is this:(https://www.paypal-brasil.com.br/developers/tutorial/express-checkout-payments-appellants/)

  • I was watching, the buyer needs to have an account also in the sandbox paypal to be able to buy? It is that I had to see that Paypal and Sandbox Paypal are different "sites" with different characteristics. That means I had to re-create an account in the sandbox.

1 answer

1

@Gonçalo, The Sandbox is Paypal’s test environment. You will need to create credentials for test(development) and later for production. You create the test user there in the sandbox that you want to test. The Sandbox is a test environment for your development, when everything is working properly then goes to production.

https://developer.paypal.com/developer/accounts/

  • But do I have to create an account there? In order to have this function?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.