Thanks @josh-square. But it shows up as VISA. Please see below. Am I using correct payment id nzUKoaJYQIpgHdX4scsp2VPWvaB, I used tender_id from refund object to get the payment?
"payment": {
"id": "nzUKoaJYQIpgHdX4scsp2VPWvaB",
"created_at": "2022-07-05T22:58:06.204Z",
"updated_at": "2022-07-05T22:58:15.608Z",
"amount_money": {
"amount": 625,
"currency": "USD"
},
"status": "COMPLETED",
"source_type": "CARD",
"card_details": {
"status": "CAPTURED",
"card": {
"card_brand": "VISA",
"last_4": "***",
"exp_month": **,
"exp_year": ***,
"fingerprint": "s*****",
"card_type": "DEBIT",
"prepaid_type": "NOT_PREPAID",
"bin": "****"
},
"entry_method": "CONTACTLESS",
"cvv_status": "CVV_NOT_CHECKED",
"avs_status": "AVS_NOT_CHECKED",
"auth_result_code": "076760",
"application_identifier": "A0000000980840",
"application_cryptogram": "860b45bcab3e1e51",
"verification_method": "NONE",
"verification_results": "UNKNOWN",
"statement_description": "SQ *SANTA CRUZ BEACH BOA",
"device_details": {
"device_id": "146CS134A2000085",
"device_name": "Loaded Fries",
"device_installation_id": "***"
},
"card_payment_timeline": {
"authorized_at": "2022-07-05T22:58:06.852Z",
"captured_at": "2022-07-05T22:58:14.126Z"
}
},
"location_id": "LZ4H1SPMFD3N6",
"order_id": "xuYkJBMkG3iAMnOZGXqzDIxeV",
"processing_fee": [
{
"effective_at": "2022-07-06T00:58:14.000Z",
"type": "INITIAL",
"amount_money": {
"amount": 16,
"currency": "USD"
}
}
],
"total_money": {
"amount": 625,
"currency": "USD"
},
"approved_money": {
"amount": 625,
"currency": "USD"
},
"employee_id": "TMnnOQ76Dv6XrnjH",
"receipt_number": "nzUK",
"receipt_url": "https://squareup.com/receipt/preview/nzUKoaJYQIpgHdX4scsp2VPWvaB",
"device_details": {
"device_id": "146CS134A2000085",
"device_name": "Loaded Fries",
"device_installation_id": "b7768a0b-e554-43e8-877c-b24bc22622ce"
},
"team_member_id": "TMnnOQ76Dv6XrnjH",
"application_details": {
"square_product": "OTHER"
},
"version_token": "vbgG1yj8ddaXyzBC9SNtbE6d9q5SFNEGMnRYCxPBgGv6o"
}
}