I have successfully integrated PayPal REST API and am now able to create payments. The next step is to enable payment approval. I followed the documentation found here:
https://developer.paypal.com/docs/integration/web/accept-paypal-payment/
It seems that using approval_url
is considered a legacy method as it opens the approval page in a separate tab. A more modern approach is described in this document here:
This newer method requires rendering the PayPal button using the checkout.js
library script. I prefer using my own custom button, but I'm unsure how to trigger the payment approval process or if it's even allowed. I've searched extensively for answers without success. Any assistance would be greatly appreciated.