Hosted Page
POST {CORE_URL_ISSUED_BY_PAYTIKO}/api/payment/hosted-page
Headers
Content-Type*
String
application/json
X-Merchant-Secret*
String
{MERCHANT_SECRET_KEY_ISSUED_BY_PAYTIKO}
Request Body
timestamp*
String
Unix Epoch timestamp.
signature*
String
$rawSignature = `${billingDetails.email};${timestamp};${MERCHANT_SECRET_KEY_ISSUED_BY_PAYTIKO}`
$signature = SHA256($rawSignature)
webhookUrl
String
Webhook notification URL.
successRedirectUrl
String
URL where client will be redirectied when payment is successful.
failedRedirectUrl
String
URL where client will be redirectied when payment is failed.
billingDetails.lockedAmount
Numeric
Locked amount value. If not provided - amount can be changed by client.
billingDetails.firstName*
String
First Name (or full name if last name cannot be provided).
billingDetails.lastName
String
Last Name.
billingDetails.email*
String
Unique client e-mail.
billingDetails.street
String
Street.
billingDetails.region
String
Region.
billingDetails.city
String
City.
billingDetails.country*
String
2-chars country code. (ISO 3166-1 alpha-2).
billingDetails.zipCode
String
ZIP / Postal Code.
billingDetails.phone*
String
Phone number.
billingDetails.dateOfBirth
String
Date of birth.
Format: YYYY-MM-dd
billingDetails.gender
String
[ 'Male', 'Female' ]
billingDetails.currency*
String
3-chars currency code (ISO 4217).
orderId*
String
Your internal unique order identifier. Used to identify your order and update it on webhooks.
disabledPspIds
Array
Ids of APM payment processors which should be disabled in the cashier. Ex: [12321, 54455, 34212]
creditCardOnly
Boolean
This parameter is used to show only credit card processors in the payment widget.
cashierDescription
String
Text shown in the cashier as an order description. (Max length is 1024 characters)
isPayOut
Boolean
Activates cashier in payout mode.
Additional query parameters
You can supply additional query parameters to adjust your widget visualization.
The complete redirect URL looks as the follows:
https://{CASHIER_HOST}?sessionToken=hp-b8fc5a8f-ce0b-49ab-a027-a1d05cc5c7a3&m_orderId=7f00853a-03de-4605-bb3f-f16ab9510fe1&m_fixed_pp_id=14854
Full list of query parameters presented below:
m_fixed_pp_id
numeric
Fixed payment processor identifier. Only this processor will be shown within the current cashier session.
"Phone", "City", "Street", "Region" & "ZipCode" fields are not required on our side, but Credit Card solutions have them as mandatory. Leaving these parameters empty can cause errors on PSP side and deposits will be failed.
Request body example
Webhook Control
To receive order status updates from us, you need to expose an open API endpoint (HTTP POST) and share with us this endpoint URL.
We resend this webhook to your server with exponential interval until your response status code won't be 200.
Webhook request body sample
Webhook signature generated as:
$signature = SHA256(`
${MERCHANT_SECRET_KEY_ISSUED_BY_PAYTIKO}:${orderId}`)
Last updated