Credit card alternative
WP Integration option
Info
This integration option supports only KZT
currency.
Payment
Payment flow
- The customer initiates the payment on the merchant's website.
- The merchant sends the payment request to PayLink.
- PayLink sends a response containing the URL for completing the payment.
- The merchant redirects the customer to the provided URL.
- The customer submits their card details on the payment page and completes the payment.
- PayLink sends a webhook notification with the payment status to the merchant.
Request
Send a payment request with the following data:
Parameter | Type | Description |
---|---|---|
request | object | |
return_url * required |
string | URL to return the customer to when the transaction is completed. |
method | object | A section of the payment method information. |
type * required |
string | credit_card_alternative |
customer | object | A section of the customer details. |
phone * required |
string | The customer's phone number with the country code, only numbers are accepted. |
string | The customer's email. |
Request example
{
"request": {
"amount": 23324,
"currency": "KZT",
"description": " ",
"return_url": "https://return_url",
"customer": {
"phone": "12345687900",
"email": "[email protected]"
},
"test": false,
"method": {
"type": "credit_card_alternative"
}
}
}
Response
Redirect your customer to the URL received as the value of the form.action
parameter.
Response example
{
"transaction": {
"uid": "da0a5e07-89ea-46da-82df-569a90c712bf",
"type": "payment",
"status": "pending",
"amount": 23324,
"currency": "KZT",
"description": " ",
"created_at": "2024-06-21T12:35:53Z",
"updated_at": "2024-06-21T12:35:54Z",
"method_type": "credit_card_alternative",
"receipt_url": "https://backoffice.paylink.kz/customer/transactions/da0a5e07-89ea-46da-82df-569a90c712bf/d4e4eb26108ff6bb6a96c2f883aa41a6d0cd4381058f91a788b35287c99f50b2",
"payment": {
"status": "pending",
"gateway_id": 4143,
"ref_id": "6179586",
"message": "Transaction was initialized."
},
"credit_card_alternative": {
"type": "credit_card_alternative"
},
"customer": {
"email": "[email protected]",
"phone": "12345687900",
"ip": null
},
"manually_corrected_at": null,
"message": "Transaction was initialized.",
"test": false,
"billing_address": {
"email": "[email protected]",
"phone": "12345687900"
},
"additional_data": {
"payment_method": {
"type": "alternative"
}
},
"gateway": {
"iframe": false
},
"form": {
"action": "https://invoice-link",
"method": "GET",
"fields": []
}
}
}