Payment Links

Introduction

Payment links are a way to generate a unique payment link which, if sent to a customer, allows them to navigate to a page hosted by the Gateway where they can easily provide payment details and complete the transactions to you.

Once generated, the link could be emailed, send via SMS or as a whatsapp message.

You can also implement this functionality for unsuccessful purchases where the original payment transaction has been declined so that you can proactively give your customer a second chance to make their purchase.

Our product provides:

  • The capability to request a Payment URL (link) for a specific amount through API
  • A hosted payment page where the customer can select the preferred payment method (based on the payment methods that are activated for your account) and make the payment
  • A hosted result page that tells the customer if the payment was successful or not, including a Retry button where the customer can chose a different payment method in case the transaction was not successful

Creating a Payment URL

Use POST to make a call to /payment-url (see API Reference) such as the example below creates a URL for a sale payment to send to a customer.

{
  "transactionAmount": {
    "total": "42.42",
    "currency": "EUR"
  },
  "transactionType": "SALE",
  "transactionNotificationURL": "https://mywebshop/Customer",
  "expiration": "4102358400",
  "authenticateTransaction": true,
  "dynamicMerchantName": "MyWebsite",
  "invoiceNumber": "96126098",
  "purchaseOrderNumber": "123055342",
  "hostedPaymentPageText": "Dear Customer, please pay our invoice 123456. "
}
{
  "clientRequestId": "30dd879c-ee2f-11db-8314-0800200c9a66",
  "apiTraceId": "rrt-0bd552c12342d3448-b-ea-1142-12938318-7",
  "requestStatus": "SUCCESS",
  "orderId": "9723846",
  "paymentUrl": "https://hyperlink-to-payment.com",
  "transactionId": "2381723322"
}

The value in paymentUrl can then be sent to the customer via your preferred means.

Other Payment URL functions

To delete a Payment URL, add your storeId and the transactionId from the Payment URL creation request response (ipgTransactionId) to the /payment-url header, and use the DELETE method to call the /payment-url API.

You can retrieve the data associated with a payment URL by sending a GET to /paymentURL. Add storeId and the transactionId from the Payment URL creation request response (ipgTransactionId) to the /payment-url header to retrieve the details for a specific Payment URL, or set storeId, fromDate and toDate to call a response with all Payment URLs and their details created within a specific time range.

Payment URL with Recurring payment

For cases where you wish to create a recurring schedule within Payment URL you need to include recurringDetails in the standard Payment URL request.

The following JSON document represents an example of a request with minimal set of elements:

{
    "transactionAmount": {
        "total": "42.00",
        "currency": "EUR"
    },
    "transactionType": "SALE",
    "expiration": "4102358400",
    "authenticateTransaction": true,
    "dynamicMerchantName": "MyWebsite",
    "invoiceNumber": "96126098",
    "purchaseOrderNumber": "123055342",
    "ip": "264.31.73.24",
    "recurringDetails": {
        "numberOfPayments": "6",
        "frequency": {
            "every":"2",
            "unit": "DAY"
        }

    }
}

In the response you will receive generated URL you can pass to your customers:

{
    "clientRequestId": "72cb9403-ec27-4edb-90c6-cbf3e1114651",
    "apiTraceId": "ZONiu64DB63LI9h0hHnkAwAAAPs",
    "requestStatus": "SUCCESS",
    "orderId": "R-353a62bb-0139-4576-9ae8-c7579a72cbf3",
    "paymentUrl": "https://test.ipg-online.com/connect/gateway/processing?paymentUrlId=1e46b20c-1964-4e8b-803e-7888e330aff3",
    "expiration": 4102358400,
    "transactionId": "84635479227"
}

Want a quick overview?