I am a developer working with a client to integrate our software with the Clover payment processor.
Using the Clover Developer Pay API, I am receiving a response of {"paymentId":"<payment_id>","result":"DECLINED","failureMessage":"DECLINED: No reason provided.”}.
Here is an example of the request I am attempting.
Thanks in advance.
=====
URL:
https://api.clover.com/v2/merchant/<merchant_id>/pay
Headers:
Authorization:Bearer <api token>
Content-Type:application/json
Request:
{ "orderId": "<order_id>", "taxAmount": 0, "zip": "<X>", "expMonth": <X>, "cvv": "<X>", "amount": 500, "currency": "usd", "last4": "<X>", "expYear": <X>, "first6": "601136", "cardEncrypted": "GgPMOi0kUmxRXF5WYI+rZJCaDTJamAoB8Nd0rDyG9hekyhPBA2z417Iye37KpWrisRTV/VCI7hZRdzq1VyhAcld8wDrOHcEIgseKTtTMlR3+/koQIPSNjK+jSrwoS4YV2BQ/zeWDeXA2lcWqpUp07ly05Hc4eXv7bsIxTLucILudpvpAMfltrTK92nuPC2cOtvoKjk9dmWaQKtjVIZ70NIUYCQgEbN9zKcGUEJooTCOzULsRE5jk/e/QG7DmypNjOJMurXWEXqkNdY15b8Gx8BvvzI1RwymbCBSDqvcICYyzfPbcdzq2e/CcCt0KNOfKJe6ET9UnQOhHGMEjy4QWaQ==" }
Response:
{"paymentId":"<payment_id>","result":"DECLINED","failureMessage":"DECLINED: No reason provided."}