What are the payment_ids
of the other successful payments? This is what I see:
{
"errors": [
{
"code": "CARD_DECLINED_VERIFICATION_REQUIRED",
"detail": "Authorization error: 'CARD_DECLINED_VERIFICATION_REQUIRED'",
"category": "PAYMENT_METHOD_ERROR"
}
],
"payment": {
"id": "5CFbbb7U3Nc9KTXJoP7hXdpmUt7YY",
"created_at": "2023-12-31T15:04:43.843Z",
"updated_at": "2023-12-31T15:04:44.070Z",
"amount_money": {
"amount": 8980,
"currency": "GBP"
},
"status": "FAILED",
"delay_duration": "PT168H",
"source_type": "CARD",
"card_details": {
"status": "FAILED",
"card": {
"card_brand": "VISA",
"last_4": "0800",
"exp_month": 4,
"exp_year": 2028,
"fingerprint": "sq-1-vvPQA5J0S40L0F2P1Qbr-Rd2hgQNZTpD7djn3zK0f-25ByaUU0dWYeysUkft1GtKQg",
"card_type": "DEBIT",
"prepaid_type": "NOT_PREPAID",
"bin": "475144"
},
"entry_method": "KEYED",
"cvv_status": "CVV_ACCEPTED",
"avs_status": "AVS_NOT_CHECKED",
"errors": [
{
"code": "CARD_DECLINED_VERIFICATION_REQUIRED",
"detail": "Authorization error: 'CARD_DECLINED_VERIFICATION_REQUIRED'",
"category": "PAYMENT_METHOD_ERROR"
}
],
"statement_description": "SQ *CARDIFF MODEL ENGINE",
"card_payment_timeline": {
"authorized_at": "2023-12-31T15:04:44.070Z"
}
},
"location_id": "LAMKBB1NZSD9K",
"order_id": "WXJuunHkzdDqZFy9HCb6hnAXsWSZY",
"total_money": {
"amount": 8980,
"currency": "GBP"
},
"approved_money": {
"amount": 0,
"currency": "GBP"
},
"delay_action": "CANCEL",
"delayed_until": "2024-01-07T15:04:43.843Z",
"application_details": {
"square_product": "ECOMMERCE_API",
"application_id": "sq0idp-Q2V_lsg9g2X6lj6GA81Ljg"
},
"version_token": "1ZUcECLzAPjo49xur0WSq1sgFUgbgJzrynx3c8DRzSx6o"
}
}
Also when calling verifyBuyer
it expects the amount in a float. Once you get back the verification_token
and call CreatePayment
that’s when the amount needs to be passed in as the smallest denomination which in your case is pence.