From 2973ef3b1dbde36248219b0b30ce8011b52470b0 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 11 Oct 2020 17:24:33 +0530 Subject: [PATCH] Use correct variable --- hosting/static/hosting/js/virtual_machine_detail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/static/hosting/js/virtual_machine_detail.js b/hosting/static/hosting/js/virtual_machine_detail.js index f01cc435..db1faaf8 100644 --- a/hosting/static/hosting/js/virtual_machine_detail.js +++ b/hosting/static/hosting/js/virtual_machine_detail.js @@ -111,7 +111,7 @@ $(document).ready(function() { console.log("Show SCA"); var stripe = Stripe(data.STRIPE_PUBLISHABLE_KEY); - stripe.confirmCardPayment(pi_secret).then(function(result) { + stripe.confirmCardPayment(data.payment_intent_secret).then(function(result) { if (result.error) { // Display error.message in your UI. $("#3ds_result").text("Error!");