Skip to main content

Initiate Synapse Payment

Initiate Synapse Payment

InitiateSynapsePayment()

The merchant initiates this call to start the payment flow of the partner.

Request Attributes

ELEMENTTYPEDESCRIPTION
merchantClientIdstringMerchant's clientId shared by Synapse during the integration process.
paymentPayloadstringAES encrypted payload merchant server received in response to Initiate Transaction S2S call.

Response Attributes

ELEMENTTYPEDESCRIPTION
successbooleantrue

Error Code

ERROR CODEERROR MESSAGE
161Payment initiation failed
3Something Went Wrong

Sample Request :

var request = {
merchantId: "MOCK-MERCHANT-101",
payload: `AES encrypted payload merchant server received in response to Initiate Transaction S2S call.`
}

Sample Code

const initiatePayment = () => {
sdk
.initiateSynapsePayment(JSON.stringify(request))
.then((val) => validateResponse(val));
})
.catch((error) => console.log(error));
};