Paytabs provides you with a collection of API endpoints which used to process all payments, regardless of if they are through either your own payment pages, the managed payment pages, or if you are using the hosted payment pages.
This article is dedicated to the clarification of the Customer Reference (customer_ref) parameter. "customer_ref" is one of the optional parameters that the request may have, which Indicates a reference to the customer at the merchant end to easily relate the transaction.
|The Parameter Tag/Name||customer_ref|
|Data Type||STRING |
|Max Length ||512|
Along with the required parameters mentioned in our Step 3 - PT2 API Endpoints | Initiating the payment solution article, you will need to set the "customer_ref" as shown below:
You can notice that the passed "customer_ref" parameter is already included within the response object.
Sample Request Payload
Sample Response Payload