Today I will show, how we can create a charge/make payment in clover using charge API in Postman.
We need the card source token using which we can create the charge. Here you can find the reference using which we can generate the same.
https://www.thecodehubs.com/create-card-token-using-custom-form-in-clover
Here is the endpoint for API:
URL: https://scl-sandbox.dev.clover.com/v1/charges
{ "ecomind": "ecom", "amount": 1000, "currency": "usd", "capture": true, "source": "Your source token" }
Add the ecomm bearer token in the Authorization. You can find the key from this page.
Once you create the charge you will get the below response.
{ "id": "GNQ69F7MJNCHW", "amount": 1000, "amount_refunded": 0, "currency": "usd", "created": 1656076454034, "captured": true, "ref_num": "217500501760", "auth_code": "OK2360", "outcome": { "network_status": "approved_by_network", "type": "authorized" }, "paid": true, "status": "succeeded", "source": { "id": "clv_1TSTSPBtVPSC6EcasJZTfyra", "address_line1_check": "pass", "address_zip": "95011", "address_zip_check": "pass", "brand": "VISA", "exp_month": "02", "exp_year": "2023", "first6": "411111", "last4": "1111" }, "ecomind": "ecom" }