UPaySafe
This alternative payment method supports the following operations:
Payment
Request
Send a payment request with the following additional data:
| Parameter | Type | Description |
|---|---|---|
| method | object | A section of the payment method information. |
| type * required |
string | u_pay_safe |
| token * conditionally required |
string | Instead of the customer section you can send the card token received in the response when the card was initially charged. |
| channel | string | Send the parameter to forward the customer directly to the required payment method instead of displaying all available UPaySafe payment methods. Possible values: VISA (by voucher), CREDITCARD, GIFTCARD, IDEAL, CUP, SOFORT, INSTANTBANKTRANSFER, JETON, CASHIXIR, EPAYCODE, GSCASH, MONEYCARD24, ECOVOUCHER, PAYSEC, MULTIBANCO, POSTEPAY, PAYPAL, POST24. |
| customer | object | A section of the customer details. |
| birth_date * required |
string | The customer’s date of birth in the ISO 8601 format (YYYY-MM-DD). |
| phone * required |
string | The customer's full phone number. |
Response
The u_pay_safe response section will have the parameters copied from the request, as well as the form section with parameters to build a form. You should redirect the customer to the form to finalize the payment via UPaySafe voucher.
Refund
Request
To refund a payment made via UPaySafe, send a refund request. No additional parameters are required.
Response
The u_pay_safe response section will have the parameters copied from the request.
Testing
These card numbers can be used to test UPaySafe integration:
| Number | Brand | Description |
|---|---|---|
| 4012888888881881 | VISA | APPROVED |
| 4242424242424242 | VISA | DECLINED |
| 4900000000000086 | VISA | NOTENROLLED |