All pages
Powered by GitBook
1 of 1

Loading...

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

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

XXXX can be replaced with the client name.


x-api-key string (Required)

This is for authentication purpose and can be obtained by logging into the Extranet itself.

Example: kfpwsfnknknfwknfkwnknef9823rujfsormDFS3ijoncvowoeorfnv

This key will be unique for every client.


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


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).


Error Response

status string

Indicates the status of the request.


ErrorMessages array

Indicates the error messages, if any.

https://token.suissu.com/service/api/generateLink
Attributes
{
   "partner_id": "TOH",
   "booking_id": "123457899624654",
   "is_button": true
}
{
   "Status": "Success",
   "ErrorMessages": [],
   "URL": "https://token.suissu.com/get-cc?userId=3c885dc7dc12c5250bf524bd2fe3c978&is_button=Y"
}
{
   "Status": "Fail",
   "ErrorMessages": [
       "partner_id : Invalid or inactive or missing partner_id"
   ]
}