Skip to main content
POST
/
api
/
mapi
/
v1
/
payments
/
open
/
api
/
paymentOrderPay
申请付款
curl --request POST \
  --url https://mpgwpre.payallglobal.com/mp-gateway/api/mapi/v1/payments/open/api/paymentOrderPay \
  --header 'Content-Type: application/json' \
  --header 'signature: <api-key>' \
  --data '
{
  "charset": "utf-8",
  "memberId": "2022000000008454",
  "merchantId": "2022000000008454",
  "requestTime": "2025-10-24T15:00:00.500+08:00",
  "signType": "RSA",
  "transType": "PAY",
  "version": "2.0.0",
  "data": {
    "outTradeNo": "394916B2ADFD4D6CAD6CC624C88990D0",
    "country": "ID",
    "sourceAccount": "PHP",
    "destinationCurrency": "PHP",
    "trade": {
      "amount": "100",
      "currency": "IDR"
    },
    "payeeInfo": {
      "paymentMethodType": "WALLET",
      "accountInfo": {
        "accountNo": "0812323233332",
        "accountType": "",
        "checkDigit": ""
      },
      "targetOrg": "DANA",
      "payeeType": "PERSONAL",
      "bankInfo": {
        "bankCode": "",
        "bankName": "",
        "bankBranch": "",
        "bankCity": "",
        "corAccountNo": ""
      },
      "name": {
        "firstName": "James",
        "middleName": "Shri Williams",
        "lastName": "Kanta",
        "fullName": "James Shri Williams Kanta"
      },
      "document": {
        "documentType": "",
        "documentId": "",
        "documentIssueDate": "",
        "documentExpireDate": ""
      },
      "address": {
        "address": "",
        "city": "",
        "state": "",
        "zipCode": ""
      },
      "payeePhone": "08123456789",
      "birthDate": "1996-09-01",
      "email": "[email protected]"
    },
    "chargeOption": "",
    "clearingRail": "LOCAL",
    "userId": "abc123456789",
    "payerInfo": {
      "subMerchantNo": "",
      "businessLegalName": "",
      "registrationCountry": "",
      "merchantCategoryCode": "",
      "payerId": "",
      "name": {
        "firstName": "James",
        "middleName": "Shri Williams",
        "lastName": "Kanta",
        "fullName": "James Shri Williams Kanta"
      }
    },
    "expiryDays": "3",
    "remark": "this is remark",
    "reference": "this is reference",
    "notifyUrl": "http://example.com/callback/",
    "notifyEmail": "[email protected]",
    "notifyPhone": "",
    "purpose": "GAME"
  }
}
'
{
"msg": "Success.",
"code": "00000000",
"data": {
"tradeNo": "20220429052556PO71330000270184",
"outTradeNo": "ORDER123456",
"status": "success"
}
}

Authorizations

signature
string
header
required

加签

加签是开放平台和商户对于交互消息完整性的校验。加签行为主要发生两个部分:

  1. 商户服务器端针对向PayAllGlobal开放平台发送的请求报文进行加签;
  2. PayAllGlobal开放平台针对通知商户的异步消息进行加签。 PayAllGlobal平台要求使用 RSA 私钥进行加签, 使用 RSA 公钥进行验签。 因此,在以上两部分描述的交互中, 存在商户公私钥、PayAllGlobal 公私钥,开发者需要使用商户私钥,对第一部分报文进行加签,使用 PayAllGlobal 公钥对第二部分消息进行验签。

加签规则如下:

  1. 使用 商户私钥对待 request.body 进行签名(SHA256WithRSA 计算原始数据的SHA-256哈希值。 使用私钥对哈希值进行签名,即使用私钥对哈希值进行RSA加密。此时得到的加密结果就是数字签名。);
Signature signature = Signature.getInstance("SHA256withRSA");
signature.initSign(privateKey);
// 计算 SHA256withRSA 签名时,需要以 utf-8 的编码转换 byte 流,否则可能导致含中文参数的签名计算不正确
signature.update(request.body);
byte[] signedHash = signature.sign();
  1. 将加签内容进行 Base64 编码;
String signature = Base64.getEncoder().encodeToString(signedHash);
  1. 将编码后的内容放在请求头部 signature 参数中。 注意,加签是对 request.body 进行签名,当查询等 request.body 为空时,则无需加签。

Body

application/json

支付查询基础请求对象

charset
string
default:UTF-8
required

交互数据的编码【utf-8】

Example:

"utf-8"

memberId
string
required

机构号

Example:

"2022000000008454"

merchantId
string
required

商户号

Example:

"2022000000008454"

requestTime
string<date-time>
required

请求时间(ISO 8601 格式,带时区)

Example:

"2025-10-24T15:00:00.500+08:00"

signType
string
required

报文签名类型

Example:

"RSA"

transType
enum<string>
required

交易类型

Available options:
PAY,
CREDIT_CARD,
3D_PREAUTH_VOIDS,
3D_PREAUTH_COMPLETION,
REFUND,
VOIDS,
QUERY,
TRANSFER,
DOWNLOAD,
REGISTRATION,
FILEUPLOAD,
INQUIRYREGISTRATIONSTATUS,
AUTHORIZE
Example:

"PAY"

version
string
required

接口版本,当前版本为【2.0.0】,目前只能传2.0.0,不能不传

Example:

"2.0.0"

data
object
required

Response

200 - application/json

OK

code
string
required

返回码,00000000代表成功。只代表接口请求成功,不代表订单状态。

Example:

"00000000"

msg
string
required

返回描述,'Success'

Example:

"Success"

data
object
required

返回数据体