- A merchant wishes to add custom fields to the payment form to be passed through for processing post-payment
Let’s walk through the steps
Start with step 1:
Simply execute step number 1 'Generate a token for payment' as it is described in the Integration Guide.
Go to step 2:
Add the new, custom field:
- Add the field
- Working with cnp_Options is further described in the COPYandPAY Options & API document
The above change returns the following result when using the "plain" COPYandPAY skin.
After the payment is done, call GetStatus as described in step 3 of the Integration Guide.
The name / value pairs of the custom field will be returned in the GetStatus-Response (in the example "BestPayerEver" was entered as a Username).