We currently have limited customer service staffing due to Coronavirus (COVID-19) safety precautions. We encourage you to find quick answers to your questions by searching the community forum, visiting our Help Center, or messaging us (message response times will be delayed). Thank you for your patience.
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).