Hello! Viewed many articles on how to work with pipel, how to accept paypal on your site. Total out 2 ways:
- Like all merchants. An action form is created which is a paypal service and fields are passed by others: cmd = _xclick and notify_url - link to the payment processor after it is paid.
- Via API papypal. Using methods: SetExpressCheckout, DoExpressCheckoutPayment, GetExpressCheckoutDetails. The first method creates an invoice and returns the token, after which my script should redirect to the paypal payment page with the previously received token. After the user confirms the payment to paypal, there is a request for my script with a token and payer ID. The script calls the DoExpressCheckoutPayment method to complete the payment and the GetExpressCheckoutDetails method to get the details.
Obviously, the first method is simpler. But why so many articles with the second way? They are more than with a simpler first. Are there any advantages of the second method? Why at all then he invented it