Skip to main content
Version: v1

Configuration

To display the payment plan to the user before they get redirected to PayJustNow you can use the configuration endpoint.

URL#

POST https://sandbox.payjustnow.com/api/v1/merchant/configuration
{    "allow_redirects": false,    "json": {        "amount": 200000,        "customer": {            "email": "[email protected]"        }    }}

Response#

If an empty payload is sent to the endpoint you would receive the following response:

{    "data": {        "minimum_amount": 10000,        "maximum_amount": 100000    }}

Sending the customer parameter would result in the same response as above but specific to that user.

Sending the amount parameter would result in the payment plan being returned:

"data": {    "payment_plan": {        "due_at": "",        "amount": "",        "excess": ""    }}

When including all parameters, the response would be as expected:

"data": {    "minimum_amount": "10000",    "maximum_amount": "100000",    "payment_plan": {        "due_at": "",        "amount": "",        "excess": ""    }}