Square SCA

This commit is contained in:
David Bomba 2021-10-03 15:04:34 +11:00
parent 1ebbf59027
commit cfbbea711e
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class CreditCard
$data['gateway'] = $this->square_driver;
$data['amount'] = $this->square_driver->payment_hash->data->amount_with_fee;
$data['currencyCode'] = $this->square_driver->client->getCurrencyCode();
$data['contact'] = $this->buildClientObject();
$data['square_contact'] = $this->buildClientObject();
return render('gateways.square.credit_card.pay', $data);
}

View File

@ -60,7 +60,7 @@ class SquareCreditCard {
const verificationDetails = {
amount: document.querySelector('meta[name=amount]').content,
billingContact: document.querySelector('meta[name=contact]').content,
billingContact: document.querySelector('meta[name=square_contact]').content,
currencyCode: document.querySelector('meta[name=currencyCode]').content,
intent: 'CHARGE'
};