Blik
SS Integration option
Payment
Payment Flow
- The customer initiates the payment on the merchant's website.
- The merchant sends a payment request to PacoPay Service Provider.
- PacoPay Service Provider responds with a link to the payment page.
- The merchant redirects the customer to the payment page.
- The customer completes the payment.
- PacoPay Service Provider sends a webhook notification with the payment status to the merchant. The merchant may also request the payment status from PacoPay Service Provider with the status query. If the transaction was successful, the webhook notification and the response to the status query may additionally contain
blik.account_numberparameter with the card mask value.
Info
This integration option supports only PLN currency.
Request
Send a payment request with the following additional data:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Request example
{
"request": {
"amount": 5000,
"currency": "PLN",
"ip": "127.0.0.1",
"description": "description",
"return_url": "https://return.com",
"method": {
"type": "blik"
},
"customer": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]"
},
"additional_data": {
"browser": {
"accept_header": "text/html,application/xhtml+xml,application/xml",
"screen_color_depth": 24,
"language": "en",
"screen_height": 800,
"screen_width": 600,
"time_zone": -300,
"user_agent": "AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0",
"java_enabled": true,
"window_width": 1024,
"window_height": 640
}
}
}
}
Response
Redirect your customer to the URL received as the value of the form.action parameter.
Response example
{
"transaction": {
"uid": "d7b88f80-f714-4f64-9aeb-dc880b3b7b4a",
"type": "payment",
"status": "pending",
"amount": 2300,
"currency": "PLN",
"description": "test",
"created_at": "2025-01-11T11:31:09Z",
"updated_at": "2025-01-11T11:31:10Z",
"method_type": "blik",
"receipt_url": "https://dashboard.paco-pay.com/customer/transactions/d7b88f80-f714-4f64-9aeb-dc880b3b7b4a/e598bbe9b8a2deaf99fbcefca028f6c6c2b7eedf593d3ee37151e9acd61844da?language=ru",
"payment": {
"status": "pending",
"gateway_id": 4824,
"ref_id": "4214474",
"message": "Invoice is created successfully, waiting for a payment",
"bank_code": 31
},
"blik": {
"type": "blik"
},
"customer": {
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"ip": null
},
"manually_corrected_at": null,
"version": 0,
"message": "Invoice is created successfully, waiting for a payment",
"tracking_id": "your_uniq_number21212",
"test": true,
"language": "en",
"billing_address": {
"email": "[email protected]",
"last_name": "Doe",
"first_name": "John"
},
"additional_data": {
"browser": {
"accept_header": "text/html,application/xhtml+xml,application/xml",
"screen_color_depth": 24,
"language": "en",
"screen_height": 800,
"screen_width": 600,
"time_zone": -300,
"user_agent": "AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0",
"java_enabled": true,
"window_width": 1024,
"window_height": 640
},
"payment_method": {
"type": "alternative"
}
},
"gateway": {
"iframe": false
},
"form": {
"action": "https://test-ss/hosted?transaction-id=5e747509-4b2e-8a0a-03ea-5697eb",
"method": "GET",
"fields": []
}
}
}