Parameters required in the MoR model
If you work with Smart Glocal according to the Merchant of Record model, make sure you pass all the parameters required to calculate tax correctly and to send confirmations and receipts.
To make a payment, complete the standard steps.
Required parameters
The parameters listed below are not the complete set of fields you need to transmit. They represent only the required parameters necessary in the MoR model.
| Name | Type | Description |
|---|---|---|
items | array | Purchased product/service details |
id | string | Product UUID in your system |
name | string | Product name |
amount_details | object | Amount details |
amount | int | Amount |
currency | string | ISO 4217 currency code. Case insensitive |
quantity | int | Quantity of product items |
category_code | string | Product item category. Always: general |
sender | object | Sender details |
country_iso3 | string | Payer's country |
email | string | Payer's email address |
postal_code | string | Payer's postal code (for the USA only) |
Sample request
curl -X POST \
https://demo.smart-glocal.com/api/v2/session/create \
-H 'content-type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"amount_details": {
"amount": 10000,
"currency": "usd"
},
"items": [{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "white box",
"amount_details": {
"amount": 5000,
"currency": "rub"
},
"quantity": 1,
"category_code": "general"
},
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d475",
"name": "Black box",
"amount_details": {
"amount": 100,
"currency": "rub"
},
"quantity": 50,
"category_code": "general"
}],
"participant_details": {
"sender": {
"country_iso3": "USA",
"postal_code": "postal code",
"email": "helen.adams@hotmail.com"
}
}
}'