Hi Bryan, I’m so sorry, I spoke too soon, it’s still not right. I’m still sometimes getting the same 'CARD_DECLINED_VERIFICATION_REQUIRED'
:
Clientside I’m calling your payments object:
const verificationResults = await payments.verifyBuyer(token, verificationDetails);
verificationDetails contains:
{"amount":"1.00","billingContact":{"addressLines":["[redacted]","[redacted]"],"familyName":"[redacted]","givenName":"[redacted]","email":"[redacted]","country":"GB","phone":"[redacted]","city":"[redacted]"},"currencyCode":"GBP","intent":"CHARGE"}
This spits out a perfectly fine looking verificationToken which I send serverside. There, I add it to the create_payment
req:
pyt = {
'idempotency_key': idempotency_key,
'location_id': r['locationId'],
'source_id': r["sourceId"],
'amount_money': {
'amount': int(bsk.total * 100),
'currency': 'GBP'
}
}
if r.get('verificationToken'):
pyt['verificationToken'] = r['verificationToken']
resp = client.payments.create_payment(body=pyt)
The create_payment
body is sent the following:
{'idempotency_key': '[redacted]', 'location_id': '[redacted]', 'source_id': 'cnon:[redacted]', 'amount_money': {'amount': 100, 'currency': 'GBP'}, 'verificationToken': 'verf:[redacted]'}
And there the object returns the verification error. You wouldn’t mind having a quick look at the logs would you on my declined transactions?
Thanks so much and sorry to disturb again.