Payment Link Webhook

The payment link webhook is sent when the status of the payment link changes.
Refer below for the sample payload.

{
  "link_ref": "2mbaHZ6VVokmHJNtKafVCyIZIxv",
  "link": "https://checkout.portone.cloud?ref=2mbaHZ6VVokmHJNtKafVCyIZIxv",
  "currency": "JPY",
  "amount": 500,
  "countryCode": "JP",
  "chaipaykey": "qcFJvupbcbdcyNFg",
  "status": "Success",
  "success_url": "https://checkout.portone.cloud/success.html",
  "cancel_url": "https://checkout.portone.cloud/failure.html",
  "merchant_order_ref": "1779AA6E40071177",
  "is_billing_shipping_same": false,
  "merchant_name": "ShopCity",
  "merchant_logo": "",
  "merchant_back_url": "https://admin.portone.cloud",
  "merchant_shipping_charges": 0,
  "merchant_promo_code": "NA",
  "merchant_promo_discount": 0,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
  "ip_address": "103.23.238.249",
  "expiry_hours": 48,
  "created_at": "2024-09-26T10:47:22.372093Z",
  "source": "default",
  "description": "Payment for Order: 1779AA6E40071177",
  "mobile_redirect_url": "",
  "show_shipping_details": false,
  "show_back_button": true,
  "is_checkout_embed": false,
  "notify_by_email": true,
  "notify_by_phone": true,
  "show_items": true,
  "merchant_key": "qcFJvupbcbdcyNFg",
  "merchant_email_address": "[email protected]",
  "customer_name": "Nitesh",
  "customer_email_address": "[email protected]",
  "customer_phone_number": "+819870987690",
  "payment_page_ref": "",
  "unit_amount": 0,
  "stock_quantity": 0,
  "signature_hash": "OEsM7zzpWbZRN/IHJLyqSnZqrF09DrMAv/I9dn1aZHM=",
  "show_saved_cards": true,
  "portone_key": "qcFJvupbcbdcyNFg",
  "user_configured_field1": "",
  "user_configured_field2": "",
  "user_configured_field3": "",
  "user_configured_field4": "",
  "user_configured_field5": ""
}

📘

Info

Refer to Payment Link Webhook Signature section to verify the signature_hash received in the webhook
During testing you can use FOSS Webhook server to setup a webhook endpoint. Create a sample webhook endpoint at webhook.site

Parameter list

link_ref
string

The unique ref of the payment link provided by PortOne


link
string

The payment link where the customer makes the payment


status
string

The status of the payment link


amount
float64

The amount of the transaction


currency
string

The currency of the transaction


chaipaykey
string

The merchant's PortOne key


countryCode
string

The country code of the transaction


success_url
string

The success URL provided by the merchant


cancel_url
string

The cancel URL provided by the merchant


merchant_order_ref
string

Order Reference sent by merchant to initiate payment link


is_billing_shipping_same
boolean

This boolean flag indicates whether the billing address and the shipping address for a transaction are the same, with true meaning they are identical and false meaning they differ


merchant_key
string

The merchant's PortOne key


merchant_name
string

The name of the merchant


merchant_logo
string

The logo of the merchant


merchant_back_url
string

The back URL provided by the merchant during the payment link creation


merchant_shipping_charges
float64

The shipping charges amount provided by the merchant during the payment link creation


merchant_promo_code
string

The promo code provided by the merchant during the payment link creation


merchant_promo_discount
float64

The promo discount provided by the merchant during the payment link creation


user_agent
string

The user agent of the device used to create the payment link


ip_address
string

The IP address used to create the payment link


expiry_hours
integer

The duration of hours the payment link is active to make the payment


created_at
string

Time of creation of the payment link


source
string

The source from which the payment link was created


description
string

The description of the payment link


mobile_redirect_url
string

The mobile app url to redirect the customer after the payment is attempted


show_shipping_details
boolean

This boolean flag indicates whether the shipping details should be displayed in the payment link checkout, with true meaning the shipping information will be shown and false meaning it will be hidden


show_back_button
boolean

This boolean flag indicates whether to show the back button within the payment link checkout, with true meaning the back button will be shown and false meaning it will be hidden


is_checkout_embed
boolean

This boolean flag indicates whether the payment link checkout was embeded in a site or not, with true meaning the checkout was embeded and false meaning it was not embeded


notify_by_email
boolean

This boolean flag indicates whether the payment link is notified to the customer email provided in billing details, with true meaning the customer is notified via email and false meaning it was not


notify_by_phone
boolean

This boolean flag indicates whether the payment link is notified to the customer phone number provided in billing details, with true meaning the customer is notified via email and false meaning it was not


show_items
boolean

This boolean flag indicates whether the order details items in the payment link checkout is shown or not, with true meaning the order details items will be shown and false meaning it will be hidden


merchant_email_address
string

The email address of the merchant


customer_name
string

The name of the customer


customer_email_address
string

The email address of the customer


customer_phone_number
string

The phone number of the customer


payment_page_ref
string

The payment page ref of the payment link


signature_hash
string

Calculate hash as mentioned at Hash Generation Reference, verify if it is equal to signature_hash received in the webhook


unit_amount
float64

The unit amount of the payment link


stock_quantity
integer

The stock quantity of the item


show_saved_cards
boolean

This boolean flag indicates whether a customer's previously saved cards can be displayed in the payment link checkout with true meaning the saved cards can be shown and false meaning they will be hidden.


portone_key
string

The merchant's PortOne key


user_configured_field1
string

The user configured field 1


user_configured_field2
string

The user configured field 2


user_configured_field3
string

The user configured field 3


user_configured_field4
string

The user configured field 4


user_configured_field5
string

The user configured field 5