尼日利亚奈拉代付申请
curl --request POST \
--url https://uat-interface.haipay.asia/ngn/pay/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 1054,
"orderId": "NGNPAY001",
"amount": "25000.00",
"accountType": "BANK_ACCOUNT",
"bankCode": "000013",
"accountNo": "8880737325",
"name": "Emeka Okafor",
"notifyUrl": "https://api.merchant.com/webhooks/haipay",
"sign": "signature"
}
'import requests
url = "https://uat-interface.haipay.asia/ngn/pay/apply"
payload = {
"appId": 1054,
"orderId": "NGNPAY001",
"amount": "25000.00",
"accountType": "BANK_ACCOUNT",
"bankCode": "000013",
"accountNo": "8880737325",
"name": "Emeka Okafor",
"notifyUrl": "https://api.merchant.com/webhooks/haipay",
"sign": "signature"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const url = 'https://uat-interface.haipay.asia/ngn/pay/apply';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
appId: 1054,
orderId: 'NGNPAY001',
amount: '25000.00',
accountType: 'BANK_ACCOUNT',
bankCode: '000013',
accountNo: '8880737325',
name: 'Emeka Okafor',
notifyUrl: 'https://api.merchant.com/webhooks/haipay',
sign: 'signature'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://uat-interface.haipay.asia/ngn/pay/apply",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'appId' => 1054,
'orderId' => 'NGNPAY001',
'amount' => '25000.00',
'accountType' => 'BANK_ACCOUNT',
'bankCode' => '000013',
'accountNo' => '8880737325',
'name' => 'Emeka Okafor',
'notifyUrl' => 'https://api.merchant.com/webhooks/haipay',
'sign' => 'signature'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://uat-interface.haipay.asia/ngn/pay/apply")
.header("Content-Type", "application/json")
.body("{\n \"appId\": 1054,\n \"orderId\": \"NGNPAY001\",\n \"amount\": \"25000.00\",\n \"accountType\": \"BANK_ACCOUNT\",\n \"bankCode\": \"000013\",\n \"accountNo\": \"8880737325\",\n \"name\": \"Emeka Okafor\",\n \"notifyUrl\": \"https://api.merchant.com/webhooks/haipay\",\n \"sign\": \"signature\"\n}")
.asString();{
"status": "1",
"error": "00000000",
"msg": "",
"data": {
"orderId": "NGNPAY001",
"orderNo": "3023062014149637",
"payUrl": "",
"sign": "signature"
}
}尼日利亚
代付申请
POST
/
ngn
/
pay
/
apply
尼日利亚奈拉代付申请
curl --request POST \
--url https://uat-interface.haipay.asia/ngn/pay/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 1054,
"orderId": "NGNPAY001",
"amount": "25000.00",
"accountType": "BANK_ACCOUNT",
"bankCode": "000013",
"accountNo": "8880737325",
"name": "Emeka Okafor",
"notifyUrl": "https://api.merchant.com/webhooks/haipay",
"sign": "signature"
}
'import requests
url = "https://uat-interface.haipay.asia/ngn/pay/apply"
payload = {
"appId": 1054,
"orderId": "NGNPAY001",
"amount": "25000.00",
"accountType": "BANK_ACCOUNT",
"bankCode": "000013",
"accountNo": "8880737325",
"name": "Emeka Okafor",
"notifyUrl": "https://api.merchant.com/webhooks/haipay",
"sign": "signature"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const url = 'https://uat-interface.haipay.asia/ngn/pay/apply';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
appId: 1054,
orderId: 'NGNPAY001',
amount: '25000.00',
accountType: 'BANK_ACCOUNT',
bankCode: '000013',
accountNo: '8880737325',
name: 'Emeka Okafor',
notifyUrl: 'https://api.merchant.com/webhooks/haipay',
sign: 'signature'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://uat-interface.haipay.asia/ngn/pay/apply",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'appId' => 1054,
'orderId' => 'NGNPAY001',
'amount' => '25000.00',
'accountType' => 'BANK_ACCOUNT',
'bankCode' => '000013',
'accountNo' => '8880737325',
'name' => 'Emeka Okafor',
'notifyUrl' => 'https://api.merchant.com/webhooks/haipay',
'sign' => 'signature'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://uat-interface.haipay.asia/ngn/pay/apply")
.header("Content-Type", "application/json")
.body("{\n \"appId\": 1054,\n \"orderId\": \"NGNPAY001\",\n \"amount\": \"25000.00\",\n \"accountType\": \"BANK_ACCOUNT\",\n \"bankCode\": \"000013\",\n \"accountNo\": \"8880737325\",\n \"name\": \"Emeka Okafor\",\n \"notifyUrl\": \"https://api.merchant.com/webhooks/haipay\",\n \"sign\": \"signature\"\n}")
.asString();{
"status": "1",
"error": "00000000",
"msg": "",
"data": {
"orderId": "NGNPAY001",
"orderNo": "3023062014149637",
"payUrl": "",
"sign": "signature"
}
}本页所有示例请求均基于沙盒(测试)环境,请注意区分正式环境。
密钥私钥(生成签名)
相关主题
请求体
application/json
业务ID(后台获取,需与URL币种一致)
商户订单号,必须唯一,最长48个字符
Maximum string length:
48交易金额(NGN),最多2位小数;范围以商户后台业务配置范围为准
Pattern:
^((([1-9]\d*)(\.\d{1,4})?)|(0\.(?!0+$)\d{1,4}))$账户类型;须为商户后台配置支持的类型
银行代码;须为商户后台支付编码配置支持的值
收款银行账号,固定10位数字
Pattern:
^\d{10}$收款人英文姓名,至少包含以空格分隔的名和姓,不支持数字或特殊字符
Pattern:
^[A-Za-z ]+$签名
收款人手机号
收款人邮箱
异步通知地址
交易标题、商品名称或支付原因
备注详情
用户唯一标识
Maximum string length:
64Pattern:
^[a-zA-Z0-9\-~!@#$%&*()_]+$最后修改于 2026年10月13日

