Skip to content

Logo

Unicorn

Accept Payments for Your Online Business

Website: ugpayments.ch

Set up Account H2H merchant account

Step 1: Create Merchant Account

To create an account send connection request at the ugpayments.ch/contact-us 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:

  • unicorn__merchant_id → Merchant ID
  • unicorn__site_id → Site ID
  • unicorn__token → Token
  • unicorn__currency → choose currency (You can set these parameters according to available currencies and features for your Unicorn 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 Unicorn Provider Overview page in 'New connection' section and choose H2H Merchant account option to open Connection form.

Connect

Enter credentials:

  • Merchant ID
  • Site ID
  • Token
  • Currency

Success

You have connected Unicorn H2H merchant account!

API examples:

Minimum 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":2,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"test123",
        "name":"John Doe",
        "email":"[email protected]",
        "phone":"380999999999",
        "address":{
          "full_address":"test123",
          "country":"UA",
          "region":"Kyiv",
          "city":"Kyiv",
          "post_code":"1234"
        }
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"50475a8b-05b9-4b70-9674-86899a828c2e",
      "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":2,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"yterh",
        "name":"John Doe",
        "email":"[email protected]",
        "phone":"380999999999",
        "date_of_birth":"2002-10-14",
        "individual_tax_id":"32133123",
        "address":{
          "full_address":"test 123",
          "country":"UA",
          "region":"Kyiv",
          "city":"Kyiv",
          "street":"Oxford Street",
          "post_code":"123456"
        }
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"01824bd8-889a-46c2-a14f-b6a36bc15474",
      "service_fields":[
      ]
    }
  }
}

Constants

Сonstants

If some parameters are not sent in the transaction creation request, they will take the values from the set constants.

Here is a list of constants with their corresponding parameters:

  • FIRST_NAME → customer [first_name]
  • LAST_NAME → customer [last_name]
  • REGION → customer [address] [region]
  • EMAIL → customer [email]
  • COUNTRY → customer [address] [country]
  • CITY → customer [address] [city]
  • ADDRESS → customer [address] [address]
  • POST_CODE → customer [address] [post_code]
  • PHONE → customer [phone]

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 Unicorn account?" Please contact our support team!