Skip to main content

Create a Payment Link

You can create payment link via Xendit Dashboard or API, depending on your business needs.

Payment link Creation PlatformBenefitsTrade-offs
Dashboard- Does not require coding experience or technical integration

- Easily create payment link directly on your Xendit dashboard

- Step-by-step payment link creation is easy to understand
Payment link creation is done manually (not automated)
API- Payment link creation is automated via API

- User Interface can be fully customized based on your business needs
Requires developer resources for technical integration

To create a payment link via dashboard, your Account User should have at least EDIT permission. Follow these steps to create a payment link via Xendit dashboard:

  1. Login to your Xendit dashboard
  2. Go to Accept Payments > Payment Link
  3. Click "Create" to create a payment link and use the information below as your guide

Required Fields

FieldWhat to Fill
External IDUnique identifier of a payment link in your system. There are no character restrictions for External ID.

Sample: Invoice-Payment-10/01/2021
AmountTotal Amount Due = The total amount your customer will pay for a specific payment link (can be in IDR, PHP or USD) without basket items. Note: If you choose Total Amount due, you do not have to input the items basket (List of Order Items) for the payment link

List of Order Items = Breakdown of the items the payment link is billing for. Requires Item Name, Quantity, and Unit Price. Note: If you choose List of Order Items, you do not have to input Total Amount Due because we automatically calculate the total amount based on your inputted item quantities and unit prices.

Accept any Amount = Lets your customer to define the amount for the payment. This is suitable for Donation or On Demand use case.

Optional Fields

FieldWhat to Fill
FeeA flat fee that will apply to the entire payment link, regardless of the payment method and channel your customer uses to pay. The admin fee is automatically added towards the total payment link amount.
DescriptionShort description for your end customer to know what the payment link is for. You can use this free field to type notes or describe the purpose of the payment link.

Sample: October 2021 electricity bill payment for Apartment Unit #1A
Enable Multiple PaymentsIf you activate this feature, your payment link will be able to accept multiple payments from your customers and you can configure the maximum payment numbers expected for this payment link.
Customer DetailsEnable you to input your customer information such as name, email and mobile phone to send payment reminder and notification via email, SMS and/or WhatsApp.
Advanced SettingConfiguration for your specific payment link. You can set the expiry date, payment methods available, and success/failed redirect URL.

Create Single Payment Link Create Single Payment Link via Dashboard Tutorial

Create Multiple Payment Link Create Multiple Payment Link via Dashboard Tutorial

Follow these steps to create a payment link via API:

  1. Follow the instructions on the Create Invoice section of the Xendit API Reference to start creating your invoice via API
  2. Setup your Invoice Callback URLs in Xendit Dashboard (for invoices paid and expired)

Example of Create Invoice via API

<?php

use Xendit\Xendit;
require 'vendor/autoload.php';

Xendit::setApiKey('xnd_development_P4qDfOss0OCpl8RtKrROHjaQYNCk9dN5lSfk+R1l9Wbe+rSiCwZ3jw==');

$params = [
'external_id' => 'demo_1475801962607',
'payer_email' => 'alfina@xendit.co',
'description' => 'Trip to Bali',
'amount' => 50000
];

$createInvoice = \Xendit\Invoice::create($params);
var_dump($createInvoice);

?>

For more sample codes and library, visit our Demo Store or this library.