Skip to content

Logo

B2Pay

International payment system

Website: b2pay.io

Set up Account

Step 1: Create Provider account

To create an account send connection request at the @B2PAYReg_bot 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:

  • Username ID
  • Encryption IV
  • Encryption Password
  • Payment Gate

Connect Provider Account

Step 1. Connect Provider account at the Corefy Dashboard

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

Connect

Enter credentials:

  • username_id → Username ID
  • encryption_iv → Encryption IV
  • encryption_password → Encryption Password
  • payment_gate → Payment Gate

  • Success

    You have connected B2Pay Provider account!

API examples:

Min request for API Corefy

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"upi_inr_hpp",
      "commerce_account":"Hello_World",
      "currency":"INR",
      "amount":10.08,
      "reference_id":"cda5799b-feb6-4b5d-926d-018a078f6b9e",
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"990271fb-bc4c-4fbf-b485-ab3e773d645e",
        "name":"John Wick",
        "email":"[email protected]"
      },
      "test_mode":false,
      "options":{
        "allow_partially":false
      },
      "service_fields":[
      ]
    }
  }
}

Maximum data set to create a transaction

PAYMENT

  POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"upi_inr_hpp",
      "commerce_account":"Hello_World:)",
      "currency":"INR",
      "amount":10.07,
      "reference_id":"77713f66-be92-4829-8dd8-aff17358ec97",
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"076e343a-1623-4fcc-86cf-c55525d02b69",
        "name":"Johny Walker",
        "email":"[email protected]",
        "phone":"+3809123123213",
        "date_of_birth":"1994-05-02",
        "individual_tax_id":"123321",
        "address":{
          "full_address":"New Dehli, 11 ",
          "country":"IN",
          "region":"New Dehli",
          "city":"New Dehli",
          "street":"New Dehli, 11",
          "post_code":"321456"
        }
      },
      "test_mode":false,
      "options":{
        "allow_partially":false
      },
      "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:

  • CUSTOMER_EMAIL → customer [email]
  • CUSTOMER_FULL_NAME → customer [full_name]

Question

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