Skip to content

Logo

PayRacks

Global payment solutions, powered by expertise and built for growth.

Supports in this guide: Payments

Provider website: payracks.com


What you need to do for start processing transactions (brief summary)

  1. Choose account type
  2. Get your credentials (from PayRacks)
  3. Connect in Dashboard
  4. Send an API request

Choose account type

PayRacks can be connected in different ways (depending on your needs):

  • If you do H2H card payments -> choose H2H Merchant account

If you are not sure which one to use, confirm with your Corefy account manager.


Prerequisites: get from PayRacks

Get the following values for your PayRacks project/account:

  • Merchant ID -> Corefy field merchant_id -> your PayRacks merchant identifier, sent with every request -> example: mrc_123456 -> where to find: PayRacks backoffice / issued by PayRacks manager
  • Application Key -> Corefy field application_key -> identifies your PayRacks application, sent with every request -> example: app_key_abc123 -> where to find: PayRacks backoffice / issued by PayRacks manager
  • Merchant Secret -> Corefy field merchant_secret -> secret used to sign requests to PayRacks and to validate PayRacks callbacks -> example: secret_xyz789 -> where to find: PayRacks backoffice / issued by PayRacks manager
  • Gateway (optional) -> Corefy field gateway -> identifier of a predefined PayRacks processing gateway; when set, it is sent with every payment request so PayRacks processes it through this gateway, when empty PayRacks selects the gateway itself -> example: s-AbCdEf123456 -> where to find: PayRacks backoffice / issued by PayRacks manager

Important

Be sure to check with the manager if you require to provide a white list of IPs, and if so, specify IP addresses from the Corefy list.


Payments processing (connect H2H Merchant account, create payment-invoice)

Connect H2H Merchant account in Corefy Dashboard

Step 1 - Open connection form

Open PayRacks in the provider directory and press Connect at PayRacks Provider Overview page in the New connection section. Choose H2H Merchant account.

Step 2 - Fill in fields and select settings

  • Merchant ID -> merchant_id
  • Application Key -> application_key
  • Merchant Secret -> merchant_secret
  • Gateway -> gateway (optional, predefined PayRacks processing gateway; leave empty to let PayRacks select it)
  • Test Mode -> (enable if you are using sandbox credentials)

Choose Currency and Features, and keep Method set to payment_card. You can set these parameters according to available currencies and features for your PayRacks account, but it is necessary to check details of the connection with your Corefy account manager.

Success

You have connected PayRacks H2H Merchant account!


First request to Corefy API (MIN)

What it does: creates a payment-invoice.

PayRacks requires the customer's email and country for every card payment. Send them in the request (customer.email, customer.address.country) or set the CUSTOMER_EMAIL and CUSTOMER_COUNTRY constants on the connection (see "Constants" below). The cardholder name is taken from the card form.

Payment - MIN

POST /api/payment-invoices

{
  "data": {
    "type": "payment-invoice",
    "attributes": {
      "reference_id": "8afec793-9b41-4dc4-b281-c76cc54ffb89",
      "service": "payment_card_eur_hpp",
      "currency": "EUR",
      "amount": 100,
      "customer": {
        "reference_id": "cus_123",
        "name": "John Doe",
        "email": "johnsmith@gmail.com",
        "phone": "1234567890",
        "address": {
          "country": "MX",
          "city": "Mexico City",
          "full_address": "123 Main St.",
          "post_code": "12345"
        }
      }
    }
  }
}

Payment - MAX

POST /api/payment-invoices

{
  "data": {
    "type": "payment-invoice",
    "attributes": {
      "reference_id": "06fa1ea9-8a5b-4dbc-b67b-6236b3b9af3d",
      "service": "payment_card_eur_hpp",
      "currency": "EUR",
      "amount": 100,
      "customer": {
        "reference_id": "cus_123",
        "name": "John Doe",
        "email": "johnsmith@gmail.com",
        "phone": "1234567890",
        "date_of_birth": "1990-01-31",
        "address": {
          "country": "MX",
          "region": "CMX",
          "city": "Mexico City",
          "full_address": "123 Main St.",
          "post_code": "12345"
        }
      }
    }
  }
}


Extended request (MAX)

Why add extra fields (typical reasons):

  • Provide additional customer details for compliance/reconciliation
  • Positively influence conversion rate
  • Include optional fields required by your specific flow

Constants (fallback fields)

Constants are static values that Corefy can send to the provider instead of dynamic data from your API request, when those fields are missing in the request.

So, if a field is missing in the API request, Corefy can take the value from the configured Constants.

After the successful connection, fill in constants for necessary routes in editing menu.

Priority (predictable rule):

  1. If a value is present in the request -> Corefy uses the request value
  2. Else if the constant is set -> Corefy uses the constant
  3. Else -> provider may reject the request or apply its defaults (depends on provider)

Currently available constants (constant -> Corefy API field)

  • CUSTOMER_LAST_NAME -> customer.name (last name part, used when the cardholder name has no last name)
  • CUSTOMER_EMAIL -> customer.email
  • CUSTOMER_PHONE -> customer.phone (digits only are sent to PayRacks)
  • CUSTOMER_DATE_OF_BIRTH -> customer.date_of_birth (format MM/DD/YYYY)
  • CUSTOMER_COUNTRY -> customer.address.country (ISO 3166-1 alpha-2, e.g. MX)
  • CUSTOMER_REGION -> customer.address.region
  • CUSTOMER_CITY -> customer.address.city
  • CUSTOMER_POST_CODE -> customer.address.post_code
  • CUSTOMER_FULL_ADDRESS -> customer.address.full_address (or customer.address.street)

Additional info

  1. Callbacks are supported. Corefy sends the callback URL to PayRacks automatically with each payment request, so no callback URL needs to be configured in the PayRacks backoffice.

FAQ / Troubleshooting

  • Invalid credentials / auth error -> verify that Merchant ID, Application Key and Merchant Secret match the selected environment (sandbox with Test Mode enabled vs production)
  • Request rejected with IP forbidden (403) -> make sure the Corefy IP addresses are added to your PayRacks allowlist
  • Currency not supported -> confirm allowed currencies/features in your PayRacks account and in Corefy; note that the PayRacks sandbox supports only EUR and USD of this connector's currencies, the rest are available in production
  • Missing customer data fields -> set constants (see "Constants") or provide fields in the API request
  • Not sure which account type to use? -> ask your Corefy account manager

Question

Still looking for help connecting your PayRacks account? Please contact our support team!