This article serves as an integration guide for developers/product managers of any business who wish to use Zeta money as a payment instrument on their user payment flows. A successful integration using PWZ RESTful APIs helps you securely accept E-com based payments from Zeta users.
Payment exceptions occur when an API operation fails to process a request payload. See Error Codes to know more about exception response codes. |
PayWithZeta can be integrated using the Checkout Flow and Save Source Flow. The details of each flow is described below.
Take care of the following:
sourceId
. This sourceId
is an identifier of tokenized source available with the requester.sourceId
as null.User enters the Zeta registered phone number. User can also choose whether to allow saving of details for future transactions.
This step will be skipped if merchant has already followed Step 3a or 3b[i]. |
requestId
= xxxxx. Only after successful validation, the merchant/requester should consider the transaction is completed.sourceId
that can be saved and used in future transactions.User clicks on "Save Payment Instrument" button on merchant’s/requester’s website.
The merchant’s/requester’s server makes a Save a source API call and gets redirectUserTo URL (a Zeta domain secured page where user completes the authentication process).
The requester/merchant redirects the user to "redirectUserTo" page.
The user enters the authentication details (phone number and OTP received on the registered phone number)
User gets redirected to ACS page in Zeta domain where he/she is prompted to enter the OTP (which is automatically sent to the user when they land on the ACS page). User enters the OTP and submits it to complete the authentication process.
Based on authentication success or failure the user gets redirected to requester’s/merchant’s successUrl or failureUrl.
In the above redirection, the requester gets the ‘q=<xxxxx>’ as a query parameter. The requester/merchant calls Get a Source API with saveSourceRequestId
= xxxxx and this returns the sourceId
which can be saved and used for future transactions.
|