mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Square SCA
This commit is contained in:
parent
fb6ac2a6f5
commit
ca412b017f
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@
|
||||
"/js/clients/payments/eway-credit-card.js": "/js/clients/payments/eway-credit-card.js?id=08ea84e9451abd434cff",
|
||||
"/js/clients/payments/mollie-credit-card.js": "/js/clients/payments/mollie-credit-card.js?id=73b66e88e2daabcd6549",
|
||||
"/js/clients/payments/paytrace-credit-card.js": "/js/clients/payments/paytrace-credit-card.js?id=c2b5f7831e1a46dd5fb2",
|
||||
"/js/clients/payments/square-credit-card.js": "/js/clients/payments/square-credit-card.js?id=d1d4669d56d31f747bb2",
|
||||
"/js/clients/payments/square-credit-card.js": "/js/clients/payments/square-credit-card.js?id=4a3c5dd391022553a3a0",
|
||||
"/js/clients/payments/stripe-ach.js": "/js/clients/payments/stripe-ach.js?id=81c2623fc1e5769b51c7",
|
||||
"/js/clients/payments/stripe-alipay.js": "/js/clients/payments/stripe-alipay.js?id=665ddf663500767f1a17",
|
||||
"/js/clients/payments/stripe-credit-card.js": "/js/clients/payments/stripe-credit-card.js?id=a30464874dee84678344",
|
||||
|
@ -66,27 +66,27 @@ verifyBuyerCallback(err,verification) {
|
||||
/* SCA */
|
||||
let verificationToken;
|
||||
|
||||
try{
|
||||
verificationToken = await verifyBuyer(result.token, verifyBuyerCallback);
|
||||
}
|
||||
catch(typeErro){
|
||||
console.log(typeErro);
|
||||
die("failed in the catch");
|
||||
}
|
||||
// const verificationDetails = {
|
||||
// amount: document.querySelector('meta[name=amount]').content,
|
||||
// billingContact: document.querySelector('meta[name=square_contact]').content,
|
||||
// currencyCode: document.querySelector('meta[name=currencyCode]').content,
|
||||
// intent: 'CHARGE'
|
||||
// };
|
||||
try {
|
||||
const verificationDetails = {
|
||||
amount: document.querySelector('meta[name=amount]').content,
|
||||
billingContact: document.querySelector('meta[name=square_contact]').content,
|
||||
currencyCode: document.querySelector('meta[name=currencyCode]').content,
|
||||
intent: 'CHARGE'
|
||||
};
|
||||
|
||||
// console.log(verificationDetails);
|
||||
console.log(verificationDetails);
|
||||
|
||||
// const verificationResults = await this.payments.verifyBuyer(
|
||||
// result.token,
|
||||
// verificationDetails
|
||||
// );
|
||||
const verificationResults = await this.payments.verifyBuyer(
|
||||
result.token,
|
||||
verificationDetails
|
||||
);
|
||||
|
||||
verificationToken = verificationResults.token;
|
||||
}
|
||||
catch(typeError){
|
||||
console.log(typeError);
|
||||
die("failed in the catch");
|
||||
}
|
||||
// console.log(" verification tokem = " + verificationToken.token);
|
||||
|
||||
// verificationToken = verificationResults.token;
|
||||
|
Loading…
x
Reference in New Issue
Block a user