You can customize the payment code of your preference via API using the parameter payment_code during payment code creation.
- If you do not send one, one will be picked at random by Xendit.
- You do not need to include a prefix to create a payment code. For example: You want to create payment code PSTEST12345A and your prefix is PSTEST , you can only fill 12345A in this field.
- It must be in the range of min 2 to max 20 characters including the prefix.
- This applies to all payment channels except for 7ELEVEN.
It is expected that you will get the error below if you try to customize the payment code for 7ELEVEN channel.
To know more about API, kindly visit our API reference.