Skip to content

Logo

Ukrgasbank

A universal bank with a focus on green finance

Supports in this guide: Payments, Payouts

Provider website: ukrgasbank.com


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

  1. Choose account type
  2. Contact Ukrgasbank to register a terminal
  3. Get your credentials (from Ukrgasbank)
  4. Connect in Dashboard
  5. Send an API request

Choose account type

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

  • If you do direct card payments (H2H, no redirect, UAH only) -> choose H2H Merchant account
  • If you do card payouts -> choose Provider account

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


Prerequisites: get from Ukrgasbank

Before you can connect, Ukrgasbank itself needs to issue you a terminal and a key pair:

  1. Register and sign in to your Ukrgasbank account, then go to the AccountToCard section -> Terminals tab -> Add new terminal. !!! caution Specify your whitelist IP addresses for each terminal. Each terminal must be added separately.
  2. Once the bank verifies and activates the terminal, go to AccountToCard -> Key Generation and download the key generator for your OS.
  3. Unpack and run KeyGen.bat/KeyGen.sh on the device that will send transaction requests - this produces your Private Key ({terminal_id}_PrivateKey.key) and a Certificate Request file ({terminal_id}_Certificate.csr).
  4. Once the terminal shows Key generation waiting, upload the .csr file to the bank.
  5. Download the resulting archive containing your Public Key and SSL Certificate.

With the Private Key file in hand, get the following for Corefy:

  • Merchant name -> Corefy field merchant_name -> H2H Merchant account only, up to 24 characters.
  • Merchant ID -> Corefy field merchant_id -> Provider account only, up to 24 characters.
  • Terminal ID -> Corefy field terminal_id -> Provider account only, optional.
  • Private key -> Corefy field private_key -> uploaded as a file, used by both account types (the {terminal_id}_PrivateKey.key from step 3).
  • API type -> Corefy field api_type -> H2H Merchant account only, choose Purchase or Card to account - this just selects which Ukrgasbank endpoint your transactions are routed to, it's not a separate flow.

UAH only.


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

Connect H2H Merchant account in Corefy Dashboard

Step 1 - Open connection form

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

Step 2 - Fill in fields and select settings

  • Merchant name
  • Private key
  • API type -> Purchase or Card to account
  • Test Mode -> (enable if you are using sandbox credentials)
  • Optionally, for Apple Pay / Google Pay: Apple merchant ID, Apple certificate, Apple certificate key, Apple certificate password, Google Pay MID

Success

You have connected Ukrgasbank H2H Merchant account!


First request to Corefy API (MIN)

What it does: creates a payment-invoice; card data itself is collected and submitted separately by Corefy's checkout/SDK layer, not as part of this request. No customer data is used by this connector at all - only card details.

Payment - MIN

POST /api/payment-invoices

{
  "data": {
    "type": "payment-invoice",
    "attributes": {
      "reference_id": "6be05631-8710-4b14-a369-1928a2b70eda",
      "service": "payment_card_uah_hpp",
      "currency": "UAH",
      "amount": 10
    }
  }
}

Important

No customer fields are sent to Ukrgasbank on Payments - only card data, so there is no MAX example with extended customer details for this flow.


Refunds

Ukrgasbank supports partial refunds, but only one refund per payment.

Important

A genuine refund is only sent to Ukrgasbank once the payment is at least 2 days old and the account's api_type is set to Purchase. In every other case (a younger payment, or an account set to Card to account) Corefy automatically falls back to a reversal request instead of a refund - this is handled transparently, but it means the two cases can behave slightly differently on Ukrgasbank's side.


Payouts processing (connect Provider account, create payout-invoice)

Connect Provider account in Corefy Dashboard

Step 1 - Open connection form

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

Step 2 - Fill in fields and select settings

  • Merchant ID
  • Terminal ID -> optional
  • Private key
  • Test Mode -> (enable if you are using sandbox credentials)

Success

You have connected Ukrgasbank Provider account!


First request to Corefy API (MIN)

What it does: creates a payout-invoice for a card payout.

Payout - MIN

POST /api/payout-invoices

{
  "data": {
    "type": "payout-invoice",
    "attributes": {
      "reference_id": "efbf0a2b-5590-42b7-b10b-94d49452147d",
      "service": "payment_card_uah",
      "currency": "UAH",
      "amount": 150,
      "customer": {
        "reference_id": "cus_123"
      },
      "fields": {
        "card_number": "4111111111111111"
      }
    }
  }
}

Important

  • fields.card_number is required.
  • For payouts under 30,000 UAH, Corefy automatically attaches your own merchant profile details (company name, IBAN, EDRPOU) as the sender - you don't send these yourself.
  • For payouts of 30,000 UAH and above, Corefy additionally attaches the receiver's first/last name, taken from the card's own embossed cardholder name if available, otherwise from customer.name.

Refunds

Ukrgasbank does not support refunds on Payouts.


Additional info

  1. Active reconciliation only, no callback - Ukrgasbank does not send asynchronous callbacks on either flow; status is resolved via the payment's own completion step (for 3D Secure redirects) and active status requests.
  2. No recurring - this connector does not support saving/charging a token through Corefy.
  3. Apple Pay and Google Pay are supported on the H2H Merchant account, gated by the optional Apple/Google Pay credential fields above.
  4. No Options or Constants are configured for this connector.

FAQ / Troubleshooting

  • Invalid credentials / auth error -> verify the Private Key file matches the terminal you registered with Ukrgasbank, and that the correct Merchant name/ID is used for the account type you connected
  • "Transaction does not exist" / reconciliation fails -> confirm the payment's order_id matches what was sent to Ukrgasbank
  • Refund behaves like a reversal -> expected for payments younger than 2 days, or accounts set to Card to account - see the note under Refunds above
  • Payout rejected for missing fields -> fields.card_number is required for every payout

Question

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