API – Developers Docs API – Developers Docs
  • Cyberpac
  • Addon Payments
  • Pagos integrados en TPV
  • InglésCambiar a Inglés
API – Developers Docs API – Developers Docs
API – Developers Docs
  • Cyberpac
  • Addon Payments
  • Pagos integrados en TPV
  • InglésCambiar a Inglés

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
    • varwwwvhostsglobalpayments.esapi-developer.globalpayments.eswp-contentuploads202301localimagespaybylink_nbo_overview_content.png
    • varwwwvhostsglobalpayments.esapi-developer.globalpayments.eswp-contentuploads202301localimagespaybylink_nbo_creation_empty.png
    • varwwwvhostsglobalpayments.esapi-developer.globalpayments.eswp-contentuploads202301localimagespaybylink_nbo_creation_created.png
  • 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

Productos

  • Cyberpac
  • Addon Payments
  • Pagos integrados en TPV
  • Universal Pay
  • Addon 1 - XML API Integration

Ventas

Cuéntanos cómo es tu negocio para ofrecerte la mejor solución.

Contacta con un experto

Soporte técnico

¿Ya eres cliente y necesitas ayuda? Contacta con nosotros, estamos a tu disposición.

Ayuda

Socios

Trabajamos con los mejores partners de soluciones in-store y eCommerce. ¿Quieres unirte?

Únete a nosotros

© Comercia Global Payments

Política de privacidad
Ejercicio de Derechos
Información a Clientes
Canal de denuncia
Aviso Legal
Política de cookies
Pregúntale a la IA
Escribe tu pregunta. Por ejemplo: ¿Cómo creo un enlace de pago?
La SmartWiki puede omitir datos. Verifica la información o contacta con soporte.

SmartWiki, Impulsada por IA

API - Developers Docs
Gestionar el consentimiento de las cookies
Para ofrecer las mejores experiencias, utilizamos tecnologías como las cookies para almacenar y/o acceder a la información del dispositivo. El consentimiento de estas tecnologías nos permitirá procesar datos como el comportamiento de navegación o las identificaciones únicas en este sitio. No consentir o retirar el consentimiento, puede afectar negativamente a ciertas características y funciones.
Funcional Siempre activo
El almacenamiento o acceso técnico es estrictamente necesario para el propósito legítimo de permitir el uso de un servicio específico explícitamente solicitado por el abonado o usuario, o con el único propósito de llevar a cabo la transmisión de una comunicación a través de una red de comunicaciones electrónicas
Preferencias
El almacenamiento o acceso técnico es necesario para la finalidad legítima de almacenar preferencias no solicitadas por el abonado o usuario
Estadísticas
El almacenamiento o acceso técnico que es utilizado exclusivamente con fines estadísticos. El almacenamiento o acceso técnico es necesario para la finalidad legítima de almacenar preferencias no solicitadas por el abonado o usuario
Marketing
El almacenamiento o acceso técnico es necesario para crear perfiles de usuario para enviar publicidad, o para rastrear al usuario en una web o en varias web con fines de marketing similares.
Administrar opciones Gestionar los servicios Gestionar {vendor_count} proveedores Leer más sobre estos propósitos
Ver preferencias
{title} {title} {title}

Cyberpac

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

Canales

Módulos de integración

Integraciones a medida

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

Pagos integrados en TPV

Crea una solución que te ayudará a automatizar procesos. Incluso, podrás agregar procesos de pago en terminales físicos.

Pago integrado con TPV Android

Pago integrado con Smartphone TPV

Fichas Técnicas TPVs