cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to avoid PayPal's javascript for checkout?

Highlighted
Contributor

Is it possible to avoid PayPal's javascript for checkout?

Hello,

 

We are currently using PayPal's deprecated Express Checkout API to do separate authorizations and captures:

 

https://developer.paypal.com/docs/classic/express-checkout/ec-api-flow/

 

I'm wondering whether it is possible to get the same flow with any currently supported API. My goal is to avoid injecting any third party JS and to prevent any DOM from being modified by this JS. After some searching, it appears that there's no way to get this done.

 

It seems what could previously be done without any dependencies and a few dozen lines of code now requires deps on both client (https://www.paypal.com/sdk/js?client-id=sb) and server (@paypal/checkout-server-sdk).

 

thanks!