Skip to content

Logo

PaymentAsia

The Answer to One-stop eBusiness Solution. Grasp Business Opportunities in Cashless Transactions

Website: merchant.pa-sys.com

Set up Account

Step 1: Create Provider account

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

  • Merchant Id
  • Merchant Token
  • Secret Code

Connect Provider Account

Step 1. Connect Provider account at the Corefy Dashboard

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

Connect

Enter credentials:

  • merchant_id → Merchant Id
  • merchant_token → Merchant Token
  • secret_code → Secret Code

Success

You have connected PaymentAsia Provider account!

API examples:

Minimum data set to create a transaction

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.1
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"bank_transfer_aggregated_php_hpp",
      "commerce_account":"coma_bO47ebXCpbRG3uS3",
      "currency":"PHP",
      "amount":540,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "test_mode":false,
      "options":{
        "allow_partially":false
      },
      "reference_id":"5e1a5103-c972-4772-9c5d-6ee44d07cb7c",
      "service_fields":{
        "first_name":"John",
        "last_name":"Doe",
        "phone":"+0123123123",
        "email":"[email protected]"
      }
    }
  }
}
PAYOUT

POST /api/commerce/payout-invoices HTTP/1.1
{
  "data":{
    "type":"payout-invoice",
    "attributes":{
      "service":"robinsons_bank_php",
      "commerce_account":"coma_bO47ebXCpbRG3uS3",
      "currency":"PHP",
      "amount":500,
      "test_mode":false,
      "reference_id":"f03d9793-39c2-4398-9e7f-53c5f502f0e2",
      "fields":{
        "beneficiary_first_name":"John",
        "beneficiary_last_name":"Doe",
        "bank_account_number":"1234567890",
        "beneficiary_phone":"633915***0011",
        "beneficiary_email":"[email protected]"
      },
      "options":{
        "attempts_limit":0,
        "split_mode":false,
        "allow_partially":false,
        "auto_process":false
      }
    }
  }
}

Maximum data set to create a transaction

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.1
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"bank_transfer_aggregated_php_hpp",
      "commerce_account":"coma_bO47ebXCpbRG3uS3",
      "currency":"PHP",
      "amount":510,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "metadata":{
        "ip":"123.123.123.123"
      },
      "test_mode":false,
      "options":{
        "allow_partially":false
      },
      "reference_id":"8bb7a885-d762-4b7c-8a1a-d7d068ec75ab",
      "service_fields":{
        "first_name":"John",
        "last_name":"Doe",
        "phone":"+0123123123",
        "email":"[email protected]"
      }
    }
  }
}

Additional information

Constants

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:

  • CUSTOMER_IP => metadata[ip] ?? default()

Default values

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:

  • customer [IP] [customer_ip] → '127.0.0.1'