Hello Square Developer Team,
I’m experiencing a consistent issue specifically when trying to save an international Visa credit card issued in Ecuador as a Card on File.
The important point is that Square successfully processes and captures the payment with this Ecuador-issued card, but CreateCard fails immediately afterward.
I’m following the documented flow:
Web Payments SDK → CreatePayment → payment_id → CreateCard
The Web Payments SDK tokenization and payment are successful:
-
Card country: Ecuador (EC)
-
Card type: Visa Credit
-
Payment status:
COMPLETED -
Card details status:
CAPTURED -
Entry method:
KEYED -
CVV status:
CVV_ACCEPTED -
AVS status:
AVS_NOT_CHECKED -
Risk level:
NORMAL
After the successful payment, I immediately call:
CreateCard(source_id = payment_id, card.customer_id = customer_id)
However, CreateCard returns:
category: INVALID_REQUEST_ERROR
code: INVALID_CARD_DATA
detail: Invalid card data.
field: source_id
Example Payment ID:
PdFdgwzKEgQRqrVIWXCPSiTvAtBZY
Customer ID:
XN7A5KX09KMWZM98ZT6PPZ9ZKW
Location ID:
42863CWXB158P
I have tested the same Ecuador-issued card both with the Ecuador billing postal code included and with the postal code completely omitted. The payment succeeds in both cases, but CreateCard still fails.
I also previously tested the alternative flow using a Web Payments SDK token with STORE and calling CreateCard directly. Cards issued in Ecuador also failed at the CreateCard step.
So the consistent behavior I’m seeing is:
Ecuador-issued Visa → Payment succeeds → CreateCard fails
Could you please clarify:
-
Is using a successful
payment_idas thesource_idfor CreateCard still the correct and supported method? -
Are there any known restrictions or additional requirements for creating Cards on File from international cards issued in Ecuador?
-
Since CreateCard performs a $0 verification, can you check whether the $0 verification for the Payment ID above was actually submitted to the Visa network / Ecuadorian card issuer?
-
If it reached the issuer, was the verification declined? Is there an internal issuer/network response code behind the
INVALID_CARD_DATAerror? -
Could the
AVS_NOT_CHECKEDresult be relevant when attempting to store an Ecuador-issued card?
The card itself is valid and Square successfully captures the payment. The problem occurs specifically when attempting to create the Card on File.
Thank you.
This is the payment:
{
“payment”: {
“id”: “PdFdgwzKEgQRqrVIWXCPSiTvAtBZY”,
“created_at”: “2026-09-18T03:58:12.747Z”,
“updated_at”: “2026-09-18T03:58:13.502Z”,
“amount_money”: {
“amount”: 658,
“currency”: “USD”
},
“status”: “COMPLETED”,
“delay_duration”: “PT168H”,
“source_type”: “CARD”,
“card_details”: {
“status”: “CAPTURED”,
“card”: {
“card_brand”: “VISA”,
“last_4”: “[redacted]”,
“exp_month”: 7,
“exp_year”: 2030,
“fingerprint”: “[redacted]”,
“card_type”: “CREDIT”,
“prepaid_type”: “NOT_PREPAID”,
“bin”: “[redacted]”,
“payment_account_reference”: “[redacted]”
},
“entry_method”: “KEYED”,
“cvv_status”: “CVV_ACCEPTED”,
“avs_status”: “AVS_NOT_CHECKED”,
“auth_result_code”: “114266”,
“statement_description”: “SQ *CARS4GO CAR RENTAL I”,
“card_payment_timeline”: {
“authorized_at”: “2026-09-18T03:58:13.051Z”,
“captured_at”: “2026-09-18T03:58:13.502Z”
}
},
“location_id”: “42863CWXB158P”,
“order_id”: “QMWpXD6PSHFM6afCOFqRqWQ8mDWZY”,
“risk_evaluation”: {
“created_at”: “2026-09-18T03:58:13.362Z”,
“risk_level”: “NORMAL”
},
“buyer_email_address”: “[redacted]”,
“billing_address”: {
“address_line_1”: “[redacted]”,
“locality”: “[redacted]”,
“country”: “EC”,
“first_name”: “[redacted]”,
“last_name”: “[redacted]”
},
“note”: “Cars4Go Payment from link”,
“customer_id”: “XN7A5KX09KMWZM98ZT6PPZ9ZKW”,
“total_money”: {
“amount”: 658,
“currency”: “USD”
},
“approved_money”: {
“amount”: 658,
“currency”: “USD”
},
“receipt_number”: “PdFd”,
“receipt_url”: " [redacted] ",
“delay_action”: “CANCEL”,
“delayed_until”: “2026-09-25T03:58:12.747Z”,
“application_details”: {
“square_product”: “ECOMMERCE_API”,
“application_id”: “sq0idp-6B4qzJJ9-Pj8dbsoihZsYQ”
},
“version_token”: “DRNaLHsv0O6AtBD5wH3P1m5Hw29JBUyo3JyU8JzzA6F6o”
}
}
this is the card request:
{
“idempotency_key”: “savecard_6aacb6d5c8bd70.41884493”,
“source_id”: “[redacted]”,
“card”: {
“cardholder_name”: “[redacted]”,
“customer_id”: “XN7A5KX09KMWZM98ZT6PPZ9ZKW”
}
}
this is the card response:
{
“errors”: [
{
“category”: “INVALID_REQUEST_ERROR”,
“code”: “INVALID_CARD_DATA”,
“detail”: “Invalid card data.”,
“field”: “source_id”
}
]
}
Thank you.