SPEI OPM

This page provides a guide to integrate SPEI OPM with DEUNA.

Supported Operations

SPEI OPM integration in your payment strategy with DEUNA allows you to perform the following operations:

  • Purchase
  • Partial refund
  • Full refund
📘

Make sure your account is properly configured on the SPEI OPM side

Supported Payment Methods

  • APM: Transfer

Active countries and currencies

  • Mexico (MXN)

Requirements

Contact your DEUNA representative and request the following credentials:

  • Your SPEI OPM credential
📘

Make sure your account is properly configured on the SPEI OPM side.

Integrate SPEI OPM

Integrate SPEI OPM.

1. Look for SPEI OPM in your connections

Search for SPEI OPM in Connections.


In Connections, a window like the following will open:

2. Configure SPEI OPM in your store

  1. Enter the following credentials:
    • In Name enter a name to reference the credential.
    • In Currency select the Currency of Merchant Processor available.
    • In API Key enter the SPEI OPM’s API key.
    • In Private Key enter the SPEI OPM’s private key.
    • In Bank Code enter the SPEI OPM’s bank code.
    • In Branch Code enter the SPEI OPM’s branch code.
    • In Integrator Code enter the SPEI OPM’s integrator code.
    • In Cost Center enter the SPEI OPM’s cost center.
    • In Expiration Time enter the SPEI OPM’s expiration time in minutes.
  2. Click Connect.

Once you complete the steps, you will see a success message.

3. Process transactions with SPEIM OPM

You will see the SPEI OPM connection within the Active Connections tab.

From this point on, you can now process transactions with SPEI OPM through DEUNA.

Purchase v2 Example

{
    "payer_info": {
        "email": "[email protected]"
    },
    "order_type": "DEUNA_NOW",
    "payment_source": {
        "method_type": "bank_transfer",
        "processor": "spei_opm"
    },
    "order": {
        "order_id": "99f4e588-42eb-41dc-a3ba-d10ccd4f6ae2",
        "currency": "MXN",
        "statement_descriptor":"test",
        "market_type": "ecommerce",
        "items": [
            {
                "id": "00ab2d23-f44a-4782-aa7c-bb4fadeddfe3",
                "name": "Item #1",
                "description": "Description Item #1",
                "total_amount": {
                    "original_amount": 115000,
                    "amount": 115000,
                    "total_discount": 0,
                    "currency": "MXN",
                    "currency_symbol": "$"
                },
                "unit_price": {
                    "amount": 100000,
                    "currency": "MXN",
                    "currency_symbol": "$"
                },
                "tax_amount": {
                    "amount": 15000,
                    "currency": "MXN",
                    "currency_symbol": "$"
                },
                "quantity": 1,
                "image_url": "https://cdn.prod.website-files.com/66269d6696cb4969aa25e070/662d847fb61e3145e2b2f640_Logo%20DEUNA.svg",
                "taxable": true
            },
            {
                "id": "3cb41aec-1be8-4255-a386-94bb316a8157",
                "name": "Item #2",
                "description": "Description Item #2",
                "total_amount": {
                    "original_amount": 115000,
                    "amount": 115000,
                    "total_discount": 0,
                    "currency": "MXN",
                    "currency_symbol": "$"
                },
                "unit_price": {
                    "amount": 100000,
                    "currency": "MXN",
                    "currency_symbol": "$"
                },
                "tax_amount": {
                    "amount": 15000,
                    "currency": "MXN",
                    "currency_symbol": "$"
                },
                "quantity": 1,
                "image_url": "https://cdn.prod.website-files.com/66269d6696cb4969aa25e070/662d847fb61e3145e2b2f640_Logo%20DEUNA.svg",
                "taxable": true
            }
        ],
        "sub_total": 200000,
        "tax_amount": 30000,
        "total_tax_amount": 30000,
        "total_amount": 230000,
        "store_code": "all",
        "billing_address": {
            "id": "4255",
            "first_name": "Omar",
            "last_name": "Guzhnay",
            "email": "[email protected]",
            "address1": "Jose Luis Lagrange 123, Piso 12",
            "address2": "Polanco I Sección",
            "zipcode": "11510",
            "city": "MIGUEL HIDALGO",
            "state_code": "{{state_code}}",
            "state_name": "CIUDAD DE MÉXICO",
            "country_code": "MX",
            "identity_document": "1205973330",
            "identity_document_type": "",
            "phone": "+5930962917328",
            "lat": -22.943934,
            "lng": -43.182984,
            "additional_description": "confirm",
            "address_type": "home"
        }
    }
}

Special considerations and limitations

  1. Currency Code: Specifies the currency (ISO 4217) code for the relevant country.
  2. Country Code: Specifies the ISO Country Codes
  3. Refunds cannot exceed the original captured amount, but one or more partial refunds of the captured amount can be performed.
  4. Only one partial refund can be sent per order.
  5. An order is EXPIRED when the time configured in the connection has concluded.
  6. The external_transaction_id field corresponds to the CLABE number of the account where the payment will be made.
  7. Before taking payments in Latin America a legal entity and an acquirer in the country of operation are required

Testing Resources

SPEI OPM cred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tOU82NXdDdE11elNvVHFoVzAyRkZCTWtBYmxodGRzWlNrbkxDZzlpWGFZNVY0OUtOWVU4Z0psNDNqYUtVd0N1U25VZXQzN21aM3lRc2xuSXZLYU05ckcvWWhnUmIrNjhyaXRCMkJncm1WdUFpTlhRUzloWTNKOWNEQ3Uzdz09Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==

Código de banco *
684

Código de sucursal *
180

Código de integrador *
250

Código de centro de costo *
001

Tiempo de expiración *
4320

Postman collection

SPEI OPM Collection.json