Click the button to make a payment to TP

4111 1111 1111 1111 Jane Jones 03/2025 204 Visa - Success
4000 0010 0000 0109 Jane Jones 03/2025 204 3ds Challenge
5555 5555 5555 4444 Jane Jones 03/2025 204 Mastercard-Success
5105 1051 0510 5100 Jane Jones 03/2025 204 Mastercard-Failure
3800 000 000 0006 Jane Jones 03/2025 204 Diners-Success
3782 8224631 0005 Jane Jones 03/2025 204 Amex-Success

Dimoco docs:

https://gateway.dimoco-payments.eu/documentation/gateway#paymentjs-javascript-integration
https://documentation.ixopay.com/docs/guides/getting-started/accept-payments/payment.js#appendix-full-code-sample
BACK

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",
              ...
            }