Library used
Direct script integration β https://www.paypal.com/web-sdk/v6/core
π Describe the Bug
Intermittently, authenticated PayPal users are redirected to an error screen at https://www.paypal.com/webapps/hermes/error?token=....
π¬ Minimal Reproduction
const sdkInstance = await window.paypal.createInstance({
clientId: '...',
components: ['paypal-subscriptions'],
});
const session = await sdkInstance.createPayPalSubscriptionPaymentSession({
onApprove: async () => { /* redirect to success */ },
onCancel: () => { /* reset UI */ },
onError: () => { /* show error */ },
});
// On button click:
await session.start({ presentationMode: 'popup' }, subscriptionPromise);
// where subscriptionPromise resolves to { subscriptionId }
π Actual Behavior
Intermittently, authenticated PayPal users are routed through https://www.paypal.com/web-sdk/content/en-GB/paypal-loading and then immediately redirected to an error screen at https://www.paypal.com/webapps/hermes/error?token=... (screenshot above). The popup never proceeds past the loading page when this occurs. The failure is inconsistent, it doesn't happen on every attempt, and I haven't been able to identify a pattern.
π€ Expected Behavior
The subscription popup should open successfully and allow the authenticated user to complete the payment, consistent with the behaviour seen for one-time payments using createPayPalOneTimePaymentSession which is working fine for us.
π Environment
- Node.js/npm: -
- OS: -
- Browser: -
β Additional Context
We can't find createPayPalSubscriptionPaymentSession referenced anywhere in the official v6 documentation, the upgrade guide, or the https://github.com/paypal-examples/v6-web-sdk-sample-integration (which only covers one-time payments). The v6 docs list createPayPalOneTimePaymentSession, createPayLaterOneTimePaymentSession, createPayPalCreditOneTimePaymentSession, and createFastlane but nothing for subscriptions.
Is createPayPalSubscriptionPaymentSession an officially supported and stable API?
Is the paypal-subscriptions component considered production-ready?
Library used
Direct script integration β
https://www.paypal.com/web-sdk/v6/coreπ Describe the Bug
Intermittently, authenticated PayPal users are redirected to an error screen at
https://www.paypal.com/webapps/hermes/error?token=....π¬ Minimal Reproduction
π Actual Behavior
Intermittently, authenticated PayPal users are routed through
https://www.paypal.com/web-sdk/content/en-GB/paypal-loadingand then immediately redirected to an error screen athttps://www.paypal.com/webapps/hermes/error?token=...(screenshot above). The popup never proceeds past the loading page when this occurs. The failure is inconsistent, it doesn't happen on every attempt, and I haven't been able to identify a pattern.π€ Expected Behavior
The subscription popup should open successfully and allow the authenticated user to complete the payment, consistent with the behaviour seen for one-time payments using
createPayPalOneTimePaymentSessionwhich is working fine for us.π Environment
β Additional Context
We can't find createPayPalSubscriptionPaymentSession referenced anywhere in the official v6 documentation, the upgrade guide, or the
https://github.com/paypal-examples/v6-web-sdk-sample-integration(which only covers one-time payments). The v6 docs listcreatePayPalOneTimePaymentSession,createPayLaterOneTimePaymentSession,createPayPalCreditOneTimePaymentSession, andcreateFastlanebut nothing for subscriptions.Is
createPayPalSubscriptionPaymentSessionan officially supported and stable API?Is the
paypal-subscriptionscomponent considered production-ready?