XenInvoice

XenInvoice (Payment Link) is a free pre-built payment page that provides a seamless payment experience to you and your customers. XenInvoice holds all of your enabled payment method available, including PayLater.

To create PayLater as a payment method in your XenIvoice, there are two ways we provide:

  1. Payment Link UI (from the Xendit Dashboard)
  2. Payment Link API

Payment Link UI

  • To make PayLater channel appear on your Payment Link, ensure to select and fill in Show order items in the Order Details (even when the item is only one)
  • The PayLater channels activated will be there on your XenInvoice!

Payment Link API

INFO

Comprehensive API flow, request, and responses are available in our API Reference

To create PayLater transaction using XenInvoice API, you need to include items parameter in the Create Invoice Request. Include these parameters inside:

RequiredOptional
name, quantity, pricecategory, url (Required for Kredivo only)

Sample Sample request of creating PayLater using Invoice

{
        "external_id": "invoice-{{$timestamp}}",
        "amount": 1000000,
        "payer_email": "customer@domain.com",
        "description": "Invoice Demo #123",
     "items": [
         {
             "name": "Nymbus 2000",
             "quantity": 1,
             "price": 1000000,
            "category": "Sports",
             "url": "www.hogwarts.co/products/sports/nymbus-2000"
         }
     ]
 }

Sample response of creating PayLater using Invoice

{
   "id": "61c00865a5ed4737a9655593",
   "external_id": "invoice-1639975013",
   "user_id": "603f1c4172bbe840979fd408",
   "status": "PENDING",
   "merchant_name": "Live Validation Test T4",
   "merchant_profile_picture_url": "https://du8nwjtfkinx.cloudfront.net/xendit.png",
   "amount": 1800000,
   "payer_email": "customer@domain.com",
   "description": "Invoice Demo #123",
   "expiry_date": "2021-12-20T05:36:54.167Z",
   "invoice_url": "https://checkout.xendit.co/web/61c00865a5ed4737a9655593",
   "available_paylaters": [
       {
           "paylater_type": "AKULAKU"
       },
       {
           "paylater_type": "KREDIVO"
       }
   ],
   }

Last Updated on 2023-07-12