question

andrey-nikiforov avatar image
andrey-nikiforov asked retailcp commented

Subsequent Payment Fails with REST API

Paying to v2 /pay:

{ "amount": 944, "currency": "USD", "expMonth": 12, "expYear": 16, "cvv": "123", "last4": "1111", "first6": "411111", "cardEncrypted": "DATA_HERE", "orderId": "Y929H9F0D6ZJT" }

and getting success back:

{ "paymentId": "ZSV3B7BJ8H862", "result": "APPROVED", "authCode": "83433", "token": "N7HFHPE2EAKER" }

then another payment for another order with same token:

{ "amount": 944, "currency": "USD", "token": "N7HFHPE2EAKER", "orderId": "3GV5FS1GDFJG8" }

results in 503 Error connecting to Payment Gateway

How can I pay with token returned from first payment?

1 comment
10 |2000

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

tom-porter avatar image tom-porter commented ·

Was this ever resolved? We're having the exact same issue in a CERT sandbox.

0 Likes 0 ·

1 Answer

Mark Mullan avatar image
Mark Mullan Deactivated answered retailcp commented

A token can be used by our Developer Pay API for subsequent transactions in place of cardEncrypted, first6, last4, cvv, expMonth, expYear, and zip. However, a 503 response appears to happen when using a token on our Developer Pay API when the backend payment gateway is set to Blackhole. All sandbox accounts by default are set to Blackhole.

If you're interested in switching your payment gateway to First Data RapidConnect, please email us at dev@clover.com and include your MerchantID.

1 comment
10 |2000

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

retailcp avatar image retailcp commented ·

To Mark Mullen or Dev team. On live Production (Under our RetailCP Developer account) (Not Sandbox) we ask "what do we need to do so that Clover Pay API can use a card payment token (& maybe last4) for subsequent transactions in place of cardEncrypted, first6, last4, cvv, expMonth, expYear, and zip ?

We requested that dev@clover would enable payment gateway for two of our RetailCP accounts. But 'Chanel. closed the question that had our request.

0 Likes 0 ·

Welcome to the
Clover Developer Community