I am sending the request below, but we are getting the “Request canceled” error, and on the Clover Flex Device, we see a message like “Processing…” What could be the issue? How do we resolve that?
Response:
{
"message": "Request cancelled",
"requestId": "a037fd70-6345",
"requestType": "PAY"
}
Request:
curl --request POST \
--url https://sandbox.dev.clover.com/connect/v1/payments \
--header 'Idempotency-Key: 23ssf234234234234sdfsdf' \
--header 'X-Clover-Device-Id: C045UT24030119' \
--header 'X-Clover-Timeout: 30' \
--header 'X-POS-Id: mypos' \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkZXZlbG9wZXItYXBwIiwiaXNzIjoiYXV0aC10b2tlbiIsImlhdCI6MTcyNTAyNTI0OSwiZXhwIjoxNzI1MDI3MDQ4LCJtZXJjaGFudF91dWlkIjoiRjI1WjFXUEQ1NUYwMSIsImFwcF91dWlkIjoiMVJEUzc1VEY4UUpXWSIsInBlcm1pc3Npb25fYml0bWFwIjoxNTM0MiwiYWNjb3VudF91dWlkIjoiNVBRM0JYQ1Q3R1BaQyJ9.voUgpg_bUEgiHpqmcHNaIAaqvnunKqoKYtJRDOMYAtE' \
--header 'content-type: application/json' \
--data '
{
"capture": true,
"deviceOptions": {
"disableCashback": false,
"offlineOptions": {
"allowOfflinePayment": false,
"approveOfflinePaymentWithoutPrompt": false,
"forceOfflinePayment": false
},
"cardEntryMethods": [
"MAG_STRIPE",
"EMV",
"NFC"
],
"cardNotPresent": false
},
"final": false,
"amount": 100,
"externalPaymentId": "123456",
"externalReferenceId": "123456",
"taxAmount": 0
}