1) On load payment.init( )
GET https://gateway.dimoco-payments.eu/js/integrated/Se5ISbI5purFv4cvMsKe.v1.3.js?_=1715013249350
REQUEST
{
"Public API Key",
"number_div",
"cvv_div",
payment.setNumberStyle({...}), /* Style the card number input form */
payment.setCvvStyle({...}) /* Style the cvv input form */
}
RESPONSE
1-iframe-v1.0.min.js
2-pan.html
3-cvv.html
4-iframe.pan.js
5-iframe.cvv.js
6-iframe.css
7-iframe.css
notes: PAN - primary account number
2) On form submission:
* Tokenization:
- Send a POST request to the Ixopay tokenization endpoint (POST https://secure.ixopay.com...).
- If successful, proceed to the success callback.
- If unsuccessful, proceed to the failure callback.
- Success Callback:
- Initiate a backend request to complete the transaction (BACKEND_URL/perform-transaction).
- Failure Callback:
- Handle errors, including form validation errors.
- Success Callback:
REQUEST
{token,cardData,price}
RESPONSE
{
"success": true,
"uuid": "5e6b99c13b51ac697ea9",
"purchaseId": "20240507-5e6b99c13b51ac697ea9",
"returnType": "FINISHED",
"paymentMethod": "Creditcard",
...
}