question

benyamen avatar image
benyamen asked David Marginian Deactivated answered

i try Create an authorization on a Payment but i got this message "invalid payment"

curl --request POST \
     --url 'https://sandbox.dev.clover.com/v3/merchants/AT89GZ8EC5TE1/authorizations?access_token=319b746e-0dd4-5278-0866-161609491088' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "payment": {
          "offline": "false",
          "transactionSettings": {
               "disableCashBack": "false",
               "cloverShouldHandleReceipts": "true",
               "forcePinEntryOnSwipe": "false",
               "disableRestartTransactionOnFailure": "false",
               "allowOfflinePayment": "false",
               "approveOfflinePaymentWithoutPrompt": "false",
               "forceOfflinePayment": "false",
               "disableReceiptSelection": "false",
               "disableDuplicateCheck": "false",
               "autoAcceptPaymentConfirmations": "false",
               "autoAcceptSignature": "false",
               "returnResultOnTransactionComplete": "false",
               "disableCreditSurcharge": "false"
          },
          "transactionInfo": {
               "isTokenBasedTx": "false",
               "emergencyFlag": "false"
          },
          "id": "245"
     },
     "closingPayment": {
          "offline": "false",
          "transactionSettings": {
               "disableCashBack": "false",
               "cloverShouldHandleReceipts": "true",
               "forcePinEntryOnSwipe": "false",
               "disableRestartTransactionOnFailure": "false",
               "allowOfflinePayment": "false",
               "approveOfflinePaymentWithoutPrompt": "false",
               "forceOfflinePayment": "false",
               "disableReceiptSelection": "false",
               "disableDuplicateCheck": "false",
               "autoAcceptPaymentConfirmations": "false",
               "autoAcceptSignature": "false",
               "returnResultOnTransactionComplete": "false",
               "disableCreditSurcharge": "false"
          },
          "transactionInfo": {
               "isTokenBasedTx": "false",
               "emergencyFlag": "false"
          }
     },
     "amount": 234,
     "last4": "1234",
     "type": "TAB"
}
'
clover developer community
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered

What are you trying to do? Do you have an existing Clover payment? It doesn't appear that you do. If you are trying to take a payment (card not present) you should look at our EComm API - https://docs.clover.com/docs/ecommerce-api-tutorials.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community