Clover Payment
Clover Payment
1. Iframe Token
The following diagram shows the basic flow of required information and the software
components that interact to complete a charge request. You add a form to your webpage
and insert the Clover-hosted elements to collect and process the user's card information.
This information is used to create the card token used by the server to complete the
payment. This charge operation must be a server-to-server call. Clover software is shown in
green, and your app's software is shown in blue.
1. Direct the user to the iframe in a manner consistent with your application's user flow.
2. Wait for the user to enter and submit their card information.
The server returns the tokenized card as a source.
3. Create a charge request with the source and a specific amount in cents.
4. Send the charge request to the SCL charge endpoint ( POST /v1/charges).
The card is charged for the specified amount.
1. SDK integration :
<script src="https://cdn.polyfill.io/v3/polyfill.min.js"></script>
<script src="https://checkout.sandbox.dev.clover.com/sdk.js"></script>
2. Key Token integration :
above keys are configurable in Anodyne practice setup with merchant details.
5. CTOKEN Request :
Send card information along with Order number(which was created by Anodyne app), paid
amount and API key to Clover server. Clover server has validate card information and API keys.
6. CTOEKN Response :
Clover server has send CTOKEN to client after validation and storage.
{
token : clv_1TSTSNcKAUqMaP1m2P22vMwt
}
8. Charge Response:
After COTKEN validation, Clover server has send charge response with transaction
details.
Sample :
"id" : "ZDXVXNAX4J0XE",
"amount" : 11,
"amount_refunded" : 0,
"currency" : "usd",
"created" : 1638369310295,
"captured" : true,
"ref_num" : "133500500060",
"auth_code" : "OK8632",
"outcome" : {
"network_status" : "approved_by_network",
"type" : "authorized"
},
"paid" : true,
"status" : "succeeded",
"source" : {
"id" : "clv_1TSTSNcKAUqMaP1m2P22vMwt",
"address_line1_check" : "unavailable",
"address_zip" : "75202",
"address_zip_check" : "pass",
"brand" : "DISCOVER",
"cvc_check" : "pass",
"exp_month" : "06",
"exp_year" : "2023",
"first6" : "601136",
"last4" : "6668"
},
"external_reference_id" : "123456",
"ecomind" : "ecom"
Validating Clover response and doing detection process for validate status.
Clover testing
Have to test all payment gateways and payment features.