Giro Pay
Вариант интеграции PCT
Оплата
Info
Этот вариант интеграции поддерживает только валюту `EUR`.
Запрос
Отправьте запрос оплаты, указав следующие дополнительные параметры:
Параметр | Тип данных | Описание |
---|---|---|
request | object | |
return_url * обязательный |
string | URL, на который будет возвращен покупатель после завершения операции в платёжной системе. |
method | object | Секция параметров способа оплаты. |
type * обязательный |
string | giro_pay |
customer | object | Секция информации о покупателе. |
email * обязательный |
string | Адрес электронной почты покупателя. |
Пример запроса
{
"request": {
"amount": 50000,
"currency": "EUR",
"description": "description",
"test": true,
"return_url": "https://return.com",
"customer": {
"email": "example@example.com"
},
"method": {
"type": "giro_pay"
}
}
}
Ответ
Секция giro_pay
из ответа на запрос будет иметь те же параметры, что были присланы в запросе, а также дополнительную секцию form
с необходимыми параметрами, чтобы сформировать веб-форму для осуществления оплаты.
Пример ответа
{
"transaction": {
"uid": "8745c510-0310-47fb-b85a-c4fc383eb73b",
"type": "payment",
"status": "pending",
"amount": 50000,
"currency": "EUR",
"description": "description",
"created_at": "2023-11-28T07:47:30Z",
"updated_at": "2023-11-28T07:47:30Z",
"method_type": "giro_pay",
"receipt_url": "https://dashboard.gold-charge.com/customer/transactions/8745c510-0310-47fb-b85a-c4fc383eb73b/b9992c90f6c1673110fefc4ac00a31363070db0b31c18da81ebc87d17428881b",
"payment": {
"status": "pending",
"gateway_id": 3462,
"ref_id": "8745c510-0310-47fb-b85a-c4fc383eb73b",
"message": "Transaction was initialized"
},
"giro_pay": {
"type": "giro_pay"
},
"customer": {
"email": "example@example.com",
"ip": null
},
"manually_corrected_at": null,
"message": "Transaction was initialized",
"test": true,
"billing_address": {
"email": "example@example.com"
},
"additional_data": {
"payment_method": {
"type": "alternative"
}
},
"gateway": {
"iframe": true
},
"form": {
"action": "https://cashier.pct.eu/en/payment_systems/pay?id=ccce71c0-3477-410a-a370-661eb018bd78",
"method": "GET",
"fields": []
}
}
}