Answer the question
In order to leave comments, you need to log in
How to integrate PayPal payment on a website with PHP?
I want to integrate express payment for services on the site (JS - front, PHP - back).
I can't figure it out with PayPal. All instructions are outdated. The link https://developer.paypal.com/docs/classic/lifecycl... leads to an empty page - there are no samples, actually. https://developer.paypal.com/docs/integration/web/ too much information, but I can't find examples. Not PayPal friendly at all. Apparently, paypal used to need business clients and paypal thought about the convenience of the API, but now it’s the other way around - business clients should think.
With stripe https://stripe.com/checkout it's much easier - right on the start landing page embed html code (I haven't figured out how to confirm the payment on the server yet, but it's not difficult to understand).
UPD:
Habr search https://habrahabr.ru/search/?target_type=posts&ord... did not give any results - all tutorials are designed for having a login/password, not a ClientID/SecretKey.
UPD 2:
For example, here's a snag: I did find a tutorial page, but:
https://developer.paypal.com/docs/classic/paypal-p...
The first step is to log into your account. And I'm not from the US, I can't register...
I only have a ClientID and a SecretKey from an employer who is from the US. There is no connection with him now, but everything should be ready in a couple of hours :(
UPD 3:
Things are moving forward. I registered with fake US data - I had to use a personal security generator of something there.
UPD 4:
After registration, I received a button with a product ID ...
But https://paypal.github.io/JavaScriptButtons/ is what you need.
Still don't know how to handle the response from PayPal.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question