secret: secret key provided by Greenpay. (String)
merchantId: merchant unique identifier provided by Greenpay. (String)
terminalId: bank terminal id provided by Greenpay. (String)
amount: order amount in numbers. (Int)
currency: currency type code configured in the terminal, example CRC or USD. (String)
description: order description, example, parking ticket payment. (String)
orderReference: Unique identifier for an order. It must be handled by the merchant
name: Complete user name.
email: Unique user email.
identification: Unique user identification.
shippingAddress:
country: country code according to ISO 3166-1 alpha2. (String)
street1: exact customer address. (String)
billingAddress:
country: country code according to ISO 3166-1 alpha2. (String)
street1: exact customer address. (String)
products:
description: product description. Example: parking ticket. (String)
skuid: merchant product id. Example: tc_10001. (String)
quantity: product quantity bought by the user. (Int)
price: product price. (Double)
type: product type. Ecample: digital ticket (String)
shippingAddress:
province: province name. (String)
city: city name. (String)
street2: exact address. (String)
zip: user address postal code. (String)
billingAddress:
province: province name. (String)
city: city name. (String)
street2: exact address. (String)
zip: user postal code. (String)
details: Any useful information for the merchant or other information required by Greenpay.
An HTTP POST type request must be sent to the payment order creation endpoint. It needs to be sent with the JSON created in the previous step.
Once the request has been sent and it has been successfully completed, a JSON object is obtained in response.
To receive this response, the parameter must be obtained from the JSON located in the “body”, since it contains the session and the token that must be sent to execute the deduction to the corresponding card.
The following image shows an example of the response received after submitting a payment order request: