I have implemented PayPal rest integration, and now I can create payments. So I have to enable payments approval now. I used this documentation:
https://developer.paypal.com/docs/integration/web/accept-paypal-payment/
As I can see, usage of approval_url
i a legacy method (it opens approval page in a separate tab). But a modern one, described here:
does require to render PayPal button using checkout.js
library script. I want to use my own button, but don't know what to call to perform payment approval. And I don's know if it is allowed at all. Can not find the good answer anywhere. Please help.