CC Collection Using Widget
This endpoint allows you to generate a secure payment link for integrating a payment button (widget) into your platform.
Endpoint
POST
https://token.suissu.com/service/api/generateLink
Header Parameters
Content-Type
string (Required)
Indicates the format of the data that has to be sent or received.
Example:
application/json
x-api-name
string (Required)
This is for authentication purpose and can be obtained by logging into the Extranet itself.
Example:
XXXXFIRSTAPP
x-api-key
string (Required)
This is for authentication purpose and can be obtained by logging into the Extranet itself.
Example:
kfpwsfnknknfwknfkwnknef9823rujfsormDFS3ijoncvowoeorfnv
partner_id
string (Required)
Indicates the unique property ID assigned upon the creation of the property.
booking_id
string (Required)
Indicates the amount that has to be charged from the credit card.
is_button
boolean (Required)
Indicates the currency accepted by the partner.
Sample Request
{
"partner_id": "TOH",
"booking_id": "123457899624654",
"is_button": true
}
Responses
Success Response
status
string
Indicates the status of the request.
ErrorMessages
array
Indicates the error messages, if any.
URL
string
A unique URL that can be used to redirect users to the payment page or display a widget for completing the payment. The URL includes parameters to identify the user and specify that it is a button-based widget (is_button=Y
).
{
"Status": "Success",
"ErrorMessages": [],
"URL": "https://token.suissu.com/get-cc?userId=3c885dc7dc12c5250bf524bd2fe3c978&is_button=Y"
}
Error Response
status
string
Indicates the status of the request.
ErrorMessages
array
Indicates the error messages, if any.
{
"Status": "Fail",
"ErrorMessages": [
"partner_id : Invalid or inactive or missing partner_id"
]
}
Last updated
Was this helpful?