Payment Links
#
Payment LinksPayment 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 APICreates a new payment link and return it along with it's unique id in response.
#
Parameter listParameter | Datatype | Obligatory/Optional | Description |
---|---|---|---|
Key | Obligatory | PortOne Key provided to merchants | |
MerchantOrderId | Obligatory | Order reference given by merchant ID | |
Amount | Obligatory | Amount for transaction | |
Currency | Obligatory | Currency for transaction | |
billing_details | Optional | Details of billing | |
shipping_details | Optional | Details of shipping | |
merchant_details | Optional | Merchant details | |
order_details | Obligatory | Order Details like quantity, id, name, price are mandatory, while image is Optional t | |
SuccessUrl | Obligatory | Redirection url for success | |
FailureUrl | Obligatory | Redirection url for failure | |
Signature | Obligatory | Signature calculated using this link | |
ExpiryHours | Obligatory | Time to expire for the payment link | |
Source | 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 | Obligatory | Description for payment link | |
Show Shipping Details | Optional | To Show/Hide the Shipping Details in Checkout UI | |
Show Back Button | Optional | To Show/Hide the Back Button in Checkout UI | |
Default Guest Checkout | Optional | To by default show the guest checkout in Checkout UI | |
Is Checkout Embed | Optional | To load the checkout UI in Embedded way |
Curl Request:
Response: