Restarting the payment is required if you directly call the Orders API from your server. If you use actions.order.capture()
, the script automatically restarts the checkout flow and prompts the payer to select a different funding source.
Restart the payment in the onApprove
function as follows: