Hello, Im using e-commerce api with iframe tokenization to save credit card on customer file :
https://scl-sandbox.dev.clover.com/v1/customers endpoint with email, name, and token received from the iframe as source. The source is saved as expected on customer record :
"cards": {
"elements": [
{
"id": "XYZ",
"first6": "601136",
"last4": "6668",
"cardType": "DISCOVER",
"token": "clv_XXX",
"tokenType": "CTOKEN",
"modifiedTime": 1590606477000,
"customer": {
"id": "ZYX"
}
}
]
},
When I try to pay for order that I created previously by calling https://apisandbox.dev.clover.com/v2/merchant/{MERCHANTID}/pay endpoint sending
{
"orderId": "XYZ",
"currency": "USD",
"amount": 890,
"tipAmount": 116,
"taxAmount": 70,
"last4": "6668",
"first6": "601136",
"zip": null,
"expMonth": 0,
"expYear": 0,
"cvv": null,
"cardEncrypted": null,
"vaultedCard": {
"token": "clv_XXX",
"first6": "545454",
"last4": "5454",
"expirationDate": null
}
}
I get "Token is invalid" error.
The same call for paying order will work if the card is added on POS device or if the token created by DevPay endpoint
Can token saved by e-commerce api be used by orders api ? (i can not use e-commerce api for payment for the order because currently it doesnt support passing tip amount for the charge)
Thanks