Processing the Payment
Last updated
Was this helpful?
Last updated
Was this helpful?
Clearent provides a secure, signed JSON Web Token () when the cardholder selects the Submit button on your .
To receive a secure and signed and complete the payment on your backend:
Call the ClearentSDK.getPaymentToken
method.
Add Promises
to receive the success or error message from the ClearentSDK.getPaymentToken()
function.
Call the JWT service using the ClearentTokenSuccess
function to receive the secure, signed, and unencrypted JSON Web Token in the field shown below.
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.