移动端、微信端

简要描述:

  • 向发送支付请求,GlobePay支付

请求URL:

POST:一级域名/index.php?s=/wapapi/Member/GlobePay

参数:

参数名 是否必须 类型 说明
out_trade_no 必填 string 外部交易号
type string 来源类型 1为微信环境2为手机浏览器
form_id string 小程序模板消息所需

返回示例:

正确时返回:

{
    "code": "0",
	"code": "请求成功",
	"data": {
		"pay_url": "https://pay.globepay.co.jp/api/v1.0/gateway/partners/aaa/orders/20200428144758105023/pay",
    }
}

错误时返回:

{
    "code": -1,
    "message": "系统繁忙"
}

返回参数说明:

参数名 类型 说明
pay_url String 第三方支付链接用于调起微信支付

小程序端

简要描述:

  • 向发送支付请求,GlobePay支付

请求URL:

POST:一级域名/index.php?s=/wapapi/Member/GlobePay

参数:

参数名 是否必须 类型 说明
out_trade_no 必填 string 外部交易号
type string 来源类型 6为小程序
form_id string 小程序模板消息所需

返回示例:

正确时返回:

{
    "code": "0",
	"code": "请求成功",
	"data": {
		"timeStamp": "1585818066",
		"nonceStr": "b645b4ceec4dcf5f124",
		"package": "prepay_id=wx953782351sdf3252",
		"paySign": "70a248fa970ae5f19c94218f5fe044fb645b4ceec4dcf5f124a42a2ab6542c0e"
    }
}

错误时返回:

{
    "code": -1,
    "message": "系统繁忙"
}

返回参数说明:

参数名 类型 说明
timeStamp String 获取用于调起微信小程序支付参数
nonceStr String 获取用于调起微信小程序支付参数
package String 获取用于调起微信小程序支付参数
paySign String 获取用于调起微信小程序支付参数

相关文档:https://www.globalfreepay.com/lib/MiniProgram_WechatPay.pdf