Processing the Payment
Last updated
Last updated
After adding the information into the Payment Details form, when cardholder clicks the Submit button to process the payment.
Follow the steps below to receive a secure and signed calling the Clearent JWT service:
Call the ClearentSDK.getPaymentToken
method.
Add Promises
to receive the success or error message from the ClearentSDK.getPaymentToken()
function.
Call the Clearent JWT service
Call the JWT service using the ClearentTokenSuccess
function to receive the secure, signed, and unencrypted in the field shown below. You can use this field to complete the payment on your backend.
Note:s do not include card information and the card token ID with card data.
Call to the clearent-mobile-gateway
from your backend using the mobilejwt
field and api-key
.
You will receive the below response after successful transaction or an error response if the transaction fails.