Use correct variable

This commit is contained in:
PCoder 2020-10-11 17:24:33 +05:30
parent 81ec1125cb
commit 2973ef3b1d

View file

@ -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!");