API – Developers Docs API – Developers Docs
  • Cyberpac
  • Addon Payments
  • POS integrated Payments
  • SpanishSwitch to Spanish
API – Developers Docs API – Developers Docs
API – Developers Docs
  • Cyberpac
  • Addon Payments
  • POS integrated Payments
  • SpanishSwitch to Spanish

PAY BY LINK

  • Icono de carpeta cerrada Icono de apertura de carpetaAPI Authentication
  • Icono de carpeta cerrada Icono de apertura de carpetaAccess By API
  • Icono de carpeta cerrada Icono de apertura de carpetaAccess By Web
  • Icono de carpeta cerrada Icono de apertura de carpetaAPI Explorer
  • Icono de carpeta cerrada Icono de apertura de carpetaFeatures
    • Auto-generated Customer Id
    • Backoffice tutorial
    • Code Format
    • Status Flow
    • Error Codes
    • Date Time &
    • Countries
    • Currencies

Access By API

Before you begin

Before you begin processing with Addon Payments Pay By Link, set up your Addon Payment test account. It requires the following account and credentials.

  • API credentials: client_id and client_secret
    • Remember that these credentials requires Pay By Link authorities.
    • For more information, go to API Authentication
  • Configure available Payment Solutions, Products, countries and currencies.

Then, you could start using Pay By Link.

Integration Steps

To start using the integration, You need API credentials with the proper permissions, you will be provided with credentials by an Addon Payment staff member during boarding.

Follow API Authentication for more information.

Step 1: Create a Pay By Link

Make a POST to /pay-by-link request passing off the following details:

  • Merchant Id: Addon Payments’ Merchant identifier
  • Product Id: Addon Payments’ Product identifier
  • MerchantTransactionId: Merchant transaction identifier.
  • Amount: Payment’s amount
  • Currency: Payment’s currency in ISO-2. List of available currencies
  • Country: Payment’s country in ISO-3. List of available countries

you could also add some other optional fields, which enrich the Pay By Link Hosted cashier page.

  • Customer Id: Customer identifier on your platform.
  • Due Date: Pay By Link due date.
  • Description: Payment’s description.
  • Language: Payment’s hosted cashier language.
  • ReferenceId: Payment’s reference identifier.
  • MerchantParams: List of merchants parameters (key, value).

Below example, you could see how you could create a Addon Payments Pay By Link for a test shopper.

  curl --location --request POST 'https://api.easypaymentgateway.com/invoice-service/pay-by-link' \
    --header 'Authorization: Bearer YOUR_OATH2_TOKEN' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "merchantId": "YOUR_MERCHANT_ID",
        "merchantTransactionId": "YOUR_MERCHANT_TRANSACTION_ID",
        "productId": "YOUR_PRODUCT_ID",
        "country": "ES",
        "currency": "EUR",
        "amount": 25.55,
        "description": "Pay By Link description",
        "language": "ES",
        "customerId": "YOUR_CUSTOMER_ID"
    }'

You receive a response containing the following details:

  • id: Pay By Link identifier
  • url: Pay By Link url, where the customer could pay
  • dueDate: Date and time when the Pay By Link is expired. By Default is 1 month.
{
      "id": "60dc27beccbab61bb8d07a7c",
      "merchantId": "YOUR_MERCHANT_ID",
      "merchantTransactionId": "YOUR_MERCHANT_TRANSACTION_ID",
      "status": "CREATED",
      "description": "Pay By Link description",
      "dueDate": "2022-08-25T22:10:30.000Z",,
      "productId": "YOUR_PRODUCT_ID",
      "currency": "EUR",
      "language": "ES",
      "amount": 25.55,
      "url": "https://invoice.epgpay.com/U5BR"
  }

Step 2: Send the link to the payer

Getting the previoues response, you could send the url field to your customer.

Sending the url, it allows to the customer to access to Addon Payments Hosted cashier, where the customer could see the available Payment Solutions for this Pay By Link.

Note: Pay By Link uses the amount and the currency that is sent in the Pay By Link create request.

IMPORTANT: Addon Payments recommend to open the Hosted cashier in full screen, to avoid any issues with payment redirections.

Step 3: Get Pay By Link details

To get Pay By Link details, you could perform a GET /pay-by-link/{id} request, returning the Pay By Link details.

curl --location --request GET 'https://api.easypaymentgateway.com/invoice-service/pay-by-link/{id}' \
    --header 'Merchant-Id: YOUR_MERCHANT_ID' \
    --header 'Authorization: Bearer YOUR_OATH2_TOKEN'

Below you could see an example of paid Pay By Link, where it contains the merchantTransactionId, amount and status.

{
      "id": "60dc27beccbab61bb8d07a7c",
      "referenceId": "98123",
      "merchantId": "YOUR_MERCHANT_ID",
      "merchantTransactionId": "YOUR_MERCHANT_TRANSACTION_ID",
      "status": "PAID",
      "description": "Pay By Link description",
      "dueDate": "2022-08-25T22:10:30.000Z",,
      "productId": "YOUR_PRODUCT_ID",
      "currency": "EUR",
      "language": "ES",
      "amount": 25.55,
      "url": "https://invoice.epgpay.com/U5BR"
  }

Cancel a Pay By Link

There are some use cases, where the merchant wants to cancel a Pay By Link before the payment is completed or the payment is expired.

The merchant could perform a PATCH /pay-by-link/{id} request, passing of the CANCELLED status.

curl --location --request PATCH 'https://api.easypaymentgateway.com/invoice-service/pay-by-link/{id}' \
  --header 'Authorization: Bearer YOUR_OATH2_TOKEN'
  --header 'Content-Type: application/json' \
  --data-raw '{
    `status`:'CANCELLED'
  }'

The response will contain a new status value

    {
      "id": "60dc27beccbab61bb8d07a7c",
      "referenceId": "98123",
      "merchantId": "YOUR_MERCHANT_ID",
      "merchantTransactionId": "YOUR_MERCHANT_TRANSACTION_ID",
      "status": "CANCELLED",
      "description": "Pay By Link description",
      "dueDate": "2022-08-25T22:10:30.000Z",,
      "productId": "YOUR_PRODUCT_ID",
      "currency": "EUR",
      "language": "ES",
      "amount": 25.55,
      "url": "https://invoice.epgpay.com/U5BR"
  }
Comparte este documento

Access By API

Copiar el enlace

Icono del portapapeles
Tabla de Contenidos

Products

  • Cyberpac
  • Addon Payments
  • POS integrated Payments
  • Universal Pay

Sales

Tell us about your business so we can offer you the best solution.

Contact an expert
Contact an expert
Contact an expert
Contact an expert
Contact an expert

Technical Support

Already a client and need help? Contact us, we’re here for you.

Help

Partners

We work with the best partners for in-store and ecommerce solutions. Want to join us?

Join us

© Comercia Global Payments

Privacy policy
Exercising rights
Client information
Whistleblowing channel
Legal disclaimer
Cookies policy
Ask AI
Write your question. For example: How do I create a payment link?
SmartWiki may skip data. Verify the information or contact support.

SmartWiki, Powered by AI

API - Developers Docs
Manage cookie consent

To offer the best experiences, we use technologies such as cookies to store and/or access device information. Consent to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Failure to consent, or withdrawal of consent, may adversely affect certain features and functions.

Functional Always active
Storage or technical access is strictly necessary for the legitimate purpose of allowing the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
Technical storage or access is necessary for the legitimate purpose of storing preferences not requested by the subscriber or user.
Statistics
El almacenamiento o acceso técnico que es utilizado exclusivamente con fines estadísticos. Storage or technical access that is used exclusively for anonymous statistical purposes. Without a requirement, voluntary compliance by your Internet service provider, or additional records from a third party, information stored or retrieved solely for this purpose cannot be used to identify you.
Marketing
Storage or technical access is necessary to create user profiles to send advertising, or to track the user on a website or several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
See preferences
{title} {title} {title}

Consulta la documentación de las distintas secciones de integraciones:

Comienza a integrar

undraw_add_to_cart_re_wrdo 1 (1) (1)

Plugins para CMS

Complementa la integración

SDKs

Métodos de pago

Herramientas

Addon Payments

Consulta la documentación de Addon Payments. Aquí tienes las distintas secciones:

Integraciones

Consultas frecuentes

Portal Backoffice

Cyberpac

We are currently working on the English version of the Cyberpac documentation. You can view the Spanish version using the buttons below:

Canales BackOffice Portal

Plugins integration

Custom integrations

POS integrated Payments

Create a solution that will help you automate processes. You can even add payment processes on physical terminals.

Payment Integrated with Android POS

Payment Integrated with Smartphone POS

POS Data sheets

Addon Payments

Comercia Global Payments has several integration options so you can choose the most efficient one for you.

Integrations

Frequently Asked Questions

BackOffice Portal

Consult the documentation of the different integrations sections:​

Start integration

undraw_add_to_cart_re_wrdo 1 (1) (1)

CMS Plugins

Complement your integration

SDKs

Payment Methods

Tools