Skip to content

Load payment link

Redirect the customer to a pre-populated Qliro Checkout hosted by Qliro.

Overview

With a payment link, you redirect the customer to a pre-populated Qliro Checkout. Use cases:

  • In store, loaded from your point-of-sale terminal.
  • As part of the standard flow in Qliro's Shopify integration.
  • When you combine Qliro's Pay Later options with Pay Now options from another payment provider.

The customer can choose a payment option on Qliro's side, within the payment link, or on your own page. The Payment Options API tells you which of your configured payment options are eligible for the customer.

The Create Order request returns the PaymentLink URL. Redirect the customer to it.

How-to

  1. Generate your authentication token.
  2. Send a POST request to checkout/merchantapi/orders.
  3. Read the OrderID from the response.

Preselect payment methods

The PaymentId property decides which payment methods the checkout shows. The Payment Options API returns the eligible values. PaymentId has three categories of values:

  • A single payment option, such as "CREDITCARDS".
  • A group of payment options, such as "PAY_LATER".
  • No value. All configured payment methods are available.

Example of a full Payment Link request

{
  "MerchantApiKey": "MerchantApiKey",
  "MerchantReference": "MerchantUniqueReference",
  "Currency": "SEK",
  "Country": "SE",
  "Language": "EN-US",
  "MerchantTermsUrl": "https://merchant.com/terms/",
  "MerchantIntegrityPolicyUrl": "https://merchant.com/policy/",
  "MerchantConfirmationUrl": "https://merchant.com/confirmation/",
  "MerchantOrderValidationUrl": "https://merchant.com/orderValidation/",
  "MerchantOrderManagementStatusPushUrl": "https://ordermanagement.merchant.com/checkoutstatus",
  "MerchantNotificationUrl": "https://ordermanagement.merchant.com/checkoutstatus",
  "MerchantCheckoutStatusPushUrl": "https://ordermanagement.merchant.com/checkoutstatus",
  "OrderItems": [
    {
      "MerchantReference": "GreyHat",
      "DisplayName": "Grey hat",
      "Description": "Perfect for rainy days!",
      "Quantity": 9,
      "PricePerItemIncVat": "99.00",
      "PricePerItemExVat": "69.30",
      "Type": "Product"
    }
  ],
  "RequireIdentityVerification": false,
  "PaymentId": "CREDITCARDS",
  "MerchantCancelUrl": "url",
  "CustomerInformation": {
    "Email": "email@email.email",
    "PersonalNumber": "111111-1111",
    "JuridicalType": "Physical",
    "MobileNumber": 46101010101,
    "Address": {
      "firstName": "Firstname",
      "lastName": "Lastname",
      "companyName": "CompanyName",
      "street": "Street 123",
      "postalCode": "12345",
      "city": "Stockholm",
      "careOf": "CareOf"
    },
    "LockCustomerInformation": true
  }
}

Payment Link response

{
  "OrderId": 120006,
  "PaymentLink": "URL/?session=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Payment options API

The Payment Options API returns the configured payment options that you can preselect when you create the order. The returned options depend on:

  • The total order value.
  • Country.
  • Currency.
  • Whether the order contains age-restricted items.

Example request

{
  "MerchantApiKey": "MerchantApiKey",
  "MerchantReference": "MerchantUniqueReference",
  "Currency": "SEK",
  "Country": "SE",
  "Language": "EN-US",
  "TotalPrice": 891,
  "HasRiskItems": false
}

Example response

[
  {
    "PaymentId": "PAY_NOW",
    "PaymentOptionText": "Pay now",
    "Options": [
      {
        "PaymentId": "CREDITCARDS",
        "PaymentOptionText": "Pay by card",
        "Brands": ["MASTERCARD", "VISA", "AMEX"]
      },
      {
        "PaymentId": "TRUSTLY_DIRECT",
        "PaymentOptionText": "Directly from your bank"
      }
    ]
  },
  {
    "PaymentId": "PAY_LATER",
    "PaymentOptionText": "Pay later",
    "Options": [
      {
        "PaymentId": "QLIRO_INVOICE",
        "PaymentOptionText": "Within 14 days, Qliro Invoice"
      },
      {
        "PaymentId": "QLIRO_CAMPAIGN",
        "PaymentOptionText": "Buy now, pay in March 39 sek, Qliro campaign"
      },
      {
        "PaymentId": "QLIRO_PARTPAYMENT",
        "PaymentOptionText": "Bit by bit"
      }
    ]
  }
]