POST
Create Payment Gateway Link

Headers

access-token
string
required

The access token used for authentication, obtained from the /v1/payment_gateways/access_token endpoint.

Body

application/json
order_id
string
required

Unique identifier for the order created by the merchant.

Example:

"34097959-a153-48d4-bdab-14332bf7a92d"

amount
number
required

The amount to be charged.

Example:

100

description
string
required

A brief description of the transaction.

Example:

"Order payment"

order_success_url
string
required

URL to redirect the user upon successful payment.

Example:

"https://yourserver.co/order/success"

payment_gateway_notification
object
required

Specifies the endpoint and authorization header for receiving notifications about payment status updates.

order_details
object
required

Response

Payment link created successfully.

redirect_url
string<uri>

The URL to redirect the customer to the Hello Clever payment gateway for completing the payment.

Example:

"https://v2.paymentgateway.cleverhub.co/oneclick-checkout?payment=eyJ0eXAiOiJKV1QiLCJh..."

payment_id
integer

The unique identifier for the payment created in the Hello Clever system.

Example:

46345

order_id
string

The unique identifier for the order associated with this payment, as provided in the request.

Example:

"34097959-a153-48d4-bdab-14332bf7a92d"