Skip to content

CDN

Set up Account H2H merchant account

Step 1: Create Merchant Account

To create an account send connection request at the telegram contact or contact manager directly. Submit the required documents to verify your account and gain access.

Step 2: Get required credentials

Credentials that have to be issued:

  • cdn__merchant_id → Merhcant ID DEV
  • cdn__public_key → Public key
  • cdn__private_key → Private key
  • cdn__test_mode → true/false
  • cdn__currency → choose currency (You can set these parameters according to available currencies and features for your CDN wallets and services, but it's necessary to check details of the connection with your Corefy account manager.)

Connect Merchant Account

Step 1. Connect H2H account at the Corefy Dashboard

Press Connect at CDN Provider Overview page in 'New connection' section and choose H2H Merchant account option to open Connection form.

Connect

Enter credentials:

  • Merchant ID
  • Public key
  • Private key

Success

You have connected CDN H2H merchant account!

API examples:

Minimum data set to create a payment invoices for payment_card_usd_hpp service

  • will be asked to complete the transaction on the dashboard and it will be success, if the customer list is filled in customer
SALE

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"payment_card_usd_hpp",
      "commerce_account":"Hello_World",
      "currency":"USD",
      "amount":14.14,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"4c7c201c-e332-468b-8615-1e6fe86b331b"
      },
      "test_mode":true,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"0a4a417a-5774-4ca8-9a40-319b3636c4e7",
      "service_fields":[
      ]
    }
  }
}

Maximum data set to create a payment invoices for payment_card_usd_hpp service

SALE

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"payment_card_usd_hpp",
      "commerce_account":"Hello_World",
      "currency":"USD",
      "amount":15.15,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"4c7c201c-e332-468b-8615-1e6fe86b331b",
        "name":"Test Customer",
        "email":"[email protected]",
        "date_of_birth":"2001-03-01",
        "address":{
          "full_address":"test123",
          "country":"FR",
          "city":"Paris",
          "street":"test"
        }
      },
      "test_mode":true,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"c22e66d5-48fa-41b0-b322-55a985204e50",
      "service_fields":[
      ]
    }
  }
}

Provider Options

Provider_Options

  • ignore_callback
    • for cascading to work correctly, we exclude the possibility of finalizing payments using asynchronous callbacks, ignore the callback, do not change the status of the transaction on it in any way and rely only on the status request for finalization (Reconciliation)

Question

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