Terminal checkouts have just started returning two payment IDs, one of which does not exist. Example:
{
"checkout": {
"id": "I9MvevSFTqoqO",
"amount_money": {
"amount": 520,
"currency": "GBP"
},
"reference_id": "1349637",
"note": "Transaction 1048609 payment 1349637",
"device_options": {
"device_id": "238CS145B2003163",
"collect_signature": true,
"tip_settings": {
"allow_tipping": false
},
"skip_receipt_screen": true
},
"status": "COMPLETED",
"payment_ids": [
"J6d7XtsN9BG9mcLmfAIRqFvCuaB",
"R5Tqtzr2rupVtpXlyZ5vzMqeV"
],
"created_at": "2024-11-11T22:05:49.773Z",
"updated_at": "2024-11-11T22:06:09.962Z",
"app_id": "sq0idp-ks4judTCWHPcDz85hCk7qg",
"location_id": "LTJJM6TXGSTRR",
"payment_type": "CARD_PRESENT",
"payment_options": {
"autocomplete": true
}
}
}
In this case, payment ID J6d7XtsN9BG9mcLmfAIRqFvCuaB
does exist, and payment ID R5Tqtzr2rupVtpXlyZ5vzMqeV
does not exist.
This is causing problems!