Payment Links
Payment Links#
Payment Links help you to receive payments from customers by sending them links via email, SMS, chat-bots and more. Payment Links can be created from the PortOne admin portal or API. The customer can select their desired payment method and complete the payment.
Generate Payment Link via API#
Creates a new payment link and return it along with it's unique id in response. Refer API docs for additional information.
Parameter list#
| Parameter | Datatype | Obligatory/Optional | Description |
|---|---|---|---|
| portone_key | string | Obligatory | Unique PortOne key for the merchant |
| merchant_order_id | string | Obligatory | The unique Merchant Order reference generated by merchant |
| amount | double | Obligatory | The amount of transaction, can be floating point number |
| currency | string | Obligatory | The currency of transaction |
| country_code | string | Obligatory | The country code of transaction |
| billing_details | object | Optional | The JSON object for billing details |
| shipping_details | object | Optional | The JSON object for shipping details |
| merchant_details | object | Obligatory | Merchant details - name, promo_discount and shipping_charges are required field (promo_discount and shipping_charges must be set to 0 when not required) |
| order_details | array of objects | Optional | Order Details like quantity, id, name, price are mandatory, while image is optional |
| success_url | string | Obligatory | The url of success page hosted by merchant. |
| failure_url | string | Obligatory | The url of failure page hosted by merchant. |
| pending_url | string | Obligatory | The url of pending page hosted by merchant. |
| signature_hash | string | Obligatory | Signature calculated using this link |
| expiry_date | string | Optional | Date and time to expire for the payment link in UTC format |
| source | string | Obligatory | From where payment link is created. Can be admin portal, checkout or api for which values are "default", "api", "checkout" respectively.Merchants should add "api" here |
| description | string | Optional | Description for payment link |
| environment | string | Obligatory | Environment of transaction either live OR sandbox |
| show_shipping_details | boolean | Optional | To Show/Hide the Shipping Details in Checkout UI |
| show_back_button | boolean | Optional | To Show/Hide the Back Button in Checkout UI |
| default_guest_checkout | boolean | Optional | To by default show the guest checkout in Checkout UI |
| is_checkout_embed | boolean | Optional | To load the checkout UI in Embedded way |
| notify_by_email | boolean | Optional | To notify customer by email |
| notify_by_phone | boolean | Optional | To notify customer by phone |
Curl Request:
Detailed curl request (including optional fields).
Curl Request:
Response: