Fixing style errors.
This commit is contained in:
parent
bd125910ab
commit
dbcdf8aaa3
@ -2396,10 +2396,10 @@ if (preg_match('/^dopayment/', $action)) { // If we choosed/click on the payme
|
|||||||
|
|
||||||
// Create a Stripe client.
|
// Create a Stripe client.
|
||||||
var stripe = Stripe('<?php echo $stripearrayofkeys['publishable_key']; // Defined into config.php ?>');
|
var stripe = Stripe('<?php echo $stripearrayofkeys['publishable_key']; // Defined into config.php ?>');
|
||||||
var cardButton = document.getElementById('buttontopay');
|
var cardButton = document.getElementById('buttontopay');
|
||||||
var clientSecret = cardButton.dataset.secret;
|
var clientSecret = cardButton.dataset.secret;
|
||||||
var options = { clientSecret: clientSecret,};
|
var options = { clientSecret: clientSecret,};
|
||||||
|
|
||||||
// Create an instance of Elements
|
// Create an instance of Elements
|
||||||
var elements = stripe.elements(options);
|
var elements = stripe.elements(options);
|
||||||
|
|
||||||
@ -2439,8 +2439,8 @@ if (preg_match('/^dopayment/', $action)) { // If we choosed/click on the payme
|
|||||||
jQuery('#buttontopay').hide();
|
jQuery('#buttontopay').hide();
|
||||||
|
|
||||||
stripe.confirmPayment({
|
stripe.confirmPayment({
|
||||||
elements,confirmParams: {
|
elements,confirmParams: {
|
||||||
return_url: '<?php echo $urlok; ?>',
|
return_url: '<?php echo $urlok; ?>',
|
||||||
payment_method_data: {
|
payment_method_data: {
|
||||||
billing_details: {
|
billing_details: {
|
||||||
name: 'test'
|
name: 'test'
|
||||||
@ -2467,7 +2467,7 @@ if (preg_match('/^dopayment/', $action)) { // If we choosed/click on the payme
|
|||||||
} else {
|
} else {
|
||||||
print 'false';
|
print 'false';
|
||||||
} ?> /* true when a customer was provided when creating payment intent. true ask to save the card */
|
} ?> /* true when a customer was provided when creating payment intent. true ask to save the card */
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
).then(function(result) {
|
).then(function(result) {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user