Skip to content

Instantly share code, notes, and snippets.

@deepu105
Created March 5, 2021 13:15
Show Gist options
  • Save deepu105/4cc678a6cbf26ece858398679233e0cd to your computer and use it in GitHub Desktop.
Save deepu105/4cc678a6cbf26ece858398679233e0cd to your computer and use it in GitHub Desktop.
const payment = await request.show();
// This payment method handles everything and returns a final result
if (payment.details.bobpay_token_id) {
await payment.complete("success");
window.location.href = "/result/success";
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment