SDKPaymentVersion 1.0.0

Create SDK Order

PUThttps://pay.globepay.co/api/v1.0/gateway/partners/{partner_code}/app_orders/{order_id}

The method is used for mobile app to call payment channel SDK payment, call API to create order, get SDK call parameter, pass parameters to SDK pull up corresponding channel App (WeChat, Alipay) payment, and return payment result directly from channel App. It is strongly advised to request GlobePay order query Api to confirm that the order has been paid in order to cancelling order by system at the same time.

More information for integration with Alipay: Alipay SDK Document
SDK for Android
SDK for iOS
More information for integration with WechatPay: WechatPay SDK Document
SDK for Android
SDK 1.8.2 for iOS

FieldDescription
Accept

application/json

Content-Type

application/json

Path Variable

FieldTypeDescription
partner_codeString

Required, Partner code

order_idString

Required, Partner order id

JSON keys

FieldTypeDescription
descriptionString

Required, Order description

priceint

Required, Price of the order. Use the base unit of the currency.

currencyString

Currency

Default value: GBP

Allowed values: GBP, CNY

channelString

payment channel, required, case sensitive

Allowed values: Alipay, Wechat

notify_urlString

System will call the notify url if provided when the payment succeeds

operatorString

Note for the operator who created this order.

systemString

os type of client app, optional

Allowed values: android, iphone, ipad

versionString

client app version, optional

appidString

wechat appid, required for Wechat, not required for Alipay

Query Params

FieldTypeDescription
timeLong

Required, UTC timestamp in milliseconds

nonce_strString

Required, Random string

signString

Required, Sign

Success 200

FieldTypeDescription
return_codeString

Execution result

result_codeString

SUCCESS means order created successfully, EXISTS means order has already existed.

partner_codeString

Partner code

full_nameString

Partner's full company name when registered

partner_nameString

Partner's name

order_idString

Order id in GlobePay, which is also WeChat order id. The final order id which is paid may be different from this one

partner_order_idString

Partner order id

sdk_paramsString

param string for calling SDK

Error Code

NameDescription
ORDER_MISMATCH

Order is not belong to this partner

ORDER_PAID

Order has already been paid

SYSTEMERROR

Exception inside system

INVALID_SHORT_ID

Partner code is invalid or there is no partner associated with this code

SIGN_TIMEOUT

Sign expired, the difference between time and the server time is more than 5 minutes

INVALID_SIGN

Invalid sign

PARAM_INVALID

Parameters are invalid. See return_msg for more details.

NOT_PERMITTED

Gateway payment permission has not been enabled for this partner

INVALID_CHANNEL

Channel name is not available, check the Capitalize

ERROR

NameDescription
return_code

Error Code

return_msg

Error Description

PCI DSS Compliant

Security & Compliance

  • PCI DSSPayment Card Industry Data Security Standard compliant
  • TLS 1.2+API accepts TLS 1.2 / 1.3 encrypted connections only
  • SHA-256Every API request must carry a SHA-256 signature

On this page