This is the recommended integration pattern for the one-time payment flow with the paypal-payments component. The paypal-js npm package is used for TypeScript type definitions for the PayPal Web SDK.