savePaymentMethod: true, then an upsell charge on page 2 using upsell.initialPaymentSession.
Live demo
Open the interactive upsell demo in the sandbox playground.
Page 1 — checkout
Page 2 — upsell
Key points
- Store
paysightSessionfromPAYMENT_SUCCESS.payload, not yoursessionId. - Handle
DUPLICATE_TRANSACTIONas success if the user refreshes page 2. submitUpsell()requireshidePaymentButton: trueor the in-iframe upsell button.