Need help?

Remote API

Mastercard JS API

The following API methods must be invoked during the checkout process. Refer to the Mastercard SDK documentation for full payload details and flow handling:

  • Init()
  • getCards()
  • idLookup()
  • initiateValidation()
  • validate()
  • checkoutWithCard()
  • checkoutWithNewCard()
  • signOut()

Remote MPI API

Once checkoutWithCard is invoked:

  • Check the value of checkoutActionCode.
  • If checkoutActionCode = COMPLETE, call the Remote MPI API and Remote API with the clicktopay parameters.
<clicktopay>
<merchanttransactionid><merchant-transaction-id from C2P JS></ merchanttransactionid >
<correlationid><srcCorrelationId from C2P JS></correlationid>
<flowid><x-src-cx-flow-id from C2P JS></flowid>
</clicktopay>
  • Handle the API response same as existing flow.