Hi, we are using the payments API to send a payment from our new website. But we are getting an error "UnexpectedError: An unexpected error occurred while verifying buyer."
We're using JS CC Iframe:
https://web.squarecdn.com/v1/square.js
Code:
const payments = Square.payments(application_id, location_id);
const card = await payments.card();
await card.attach('#card-container');
// 2. Perform verification
const verificationDetails = {
amount: ${amount},
currencyCode: 'GBP',
intent: 'CHARGE',
customerInitiated: true,
sellerKeyedIn: false,
billingContact: {
addressLines: [''], //['1 The Square'],
familyName: family_name,
givenName: given_name,
email: email,
eventDate: event_date,
pageName: pageName,
phone: '', //'+[Redacted]',
city: '', //'Abingdon',
state: '', //'Oxfordshire',
postalCode: '', //'97128',
countryCode: 'GB', //'GB',
},
};
Very generic error, so wondering what we are doing wrong or not doing?
It test mode it worked fine, this is just in live/production
Thanks
Dave
Square Community
Square Products