Skip to content

Logo

Pay4funGo

Online payments with convenience and security

Website: merchant.p4f.com

Set up Account

Step 1: Create merchant account

To create an account send connection request at the merchant.p4f.com 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
  • Password

Log into your Merchant account at the backtest.p4f.com. Go to the 'Account' → 'API' → 'Credentials'.

Credentials

Get credentials:

  • Merchant ID
  • Merchant Key
  • Merchant Secret

Credential1

Connect Provider Account

Step 1. Connect Provider account at the Corefy Dashboard

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

Connect

Enter credentials:

  • Merchant ID → Merchant ID
  • Merchant Key → Merchant Key
  • Merchant Secret → Merchant Secret

Success

You have connected Pay4funGo Provider account!

Payment routes

Routes

Merchants have the convenience of selecting from a range of payment methods such as "PIX", "Boleto Bancario", and bank transfer for transactions in BRL currency.

Upon selection of "PIX" or "Boleto Bancario", the checkout page will be automatically generated for the chosen method. However, if the merchant opts for bank transfer and specifies a particular bank, the checkout page will be tailored to that specific bank and method.

OldHpp

In the event that the merchant chooses the bank transfer method without specifying a particular bank, a payment page with multiple bank options will be presented for selection. NewHpp

API examples for payouts:

Maximum data set to create a payout invoices

POST /api/commerce/payout-invoices HTTP/1.1

{
  "data": {
    "type": "payout-invoice",
    "attributes": {
      "service": "pix_brl",
      "commerce_account": "Lorem Ipsum",
      "currency": "BRL",
      "amount": 101.98,
      "test_mode": false,
      "reference_id": "15da57fd-f4bc-4084-91f8-0a5d96e25b24",
      "customer": {
        "date_of_birth": "2000-01-03",
        "email": "[email protected]",
        "reference_id": "312r23489asda9d89"
      },
      "fields": {
          "cpf_number": "36703436010",
          "account_number": "6789",
          "account_type": "CPF",
          "bank_account_type": "personal",
          "bank_branch_code": "12345",
          "bank_code": "15"
      },
      "options": {
        "attempts_limit": 0,
        "split_mode": false,
        "allow_partially": false,
        "auto_process": false
      }
    }
  }
}

Minimum data set to create a payout invoices

POST /api/commerce/payout-invoices HTTP/1.1

{
  "data": {
    "type": "payout-invoice",
    "attributes": {
      "service": "pix_brl",
      "commerce_account": "Lorem Ipsum",
      "currency": "BRL",
      "amount": 101.98,
      "test_mode": false,
      "reference_id": "15da57fd-f4bc-4084-91f8-0a5d96e25b24",
      "customer": {
        "reference_id": "312r23489asda9d89"
      },
      "fields": {
          "cpf_number": "36703436010",
          "account_number": "6789",
          "account_type": "CPF",
          "bank_account_type": "personal",
          "bank_branch_code": "12345",
          "bank_code": "15"
      },
      "options": {
        "attempts_limit": 0,
        "split_mode": false,
        "allow_partially": false,
        "auto_process": false
      }
    }
  }
}

API examples for payments:

Maximum data set to create a payments invoices

POST /api/commerce/payment-invoices HTTP/1.1

{
  "data": {
    "type": "payment-invoice",
    "commerce_account": "Hello world",
    "attributes": {
      "service": "bank_transfer_brl_hpp",
      "currency": "BRL",
      "test_mode": false,
      "amount": 152.67,
      "reference_id": "h312jqehjsajeh12",
      "customer": {
        "reference_id": "12dwjnjdw434jn",
        "name": "John Wik",
        "email": "[email protected]",
        "date_of_birth": "2000-07-27",
        "address": {
          "post_code": "65001"
        }
      },
      "service_fields": {
        "cpf_number": "56443853024"
      }
    }
  }
}

Minimum data set to create a payments invoices

POST /api/commerce/payment-invoices HTTP/1.1

{
  "data": {
    "type": "payment-invoice",
    "commerce_account": "Hello world",
    "attributes": {
      "service": "bank_transfer_brl_hpp",
      "currency": "BRL",
      "test_mode": false,
      "amount": 152.67,
      "reference_id": "h312jqehjsajeh12",
      "service_fields": {
        "cpf_number": "56443853024"
      }
    }
  }
}

Additional information

Constants for Provider account

Constants

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:

  • LANG → language

Default values for Provider account

If some parameters are not passed in the request to create a transaction and the corresponding constants have no values, then default values will be passed instead.

Here is the list of default values with their corresponding parameters:

  • lang → 'en'

Still looking for help connecting your Pay4funGo account?

Please contact our support team!