Micro-PrePay API

This endpoint enables mobile payments specifically tailored for WeChat In-App solutions

Body Params
string
required
Defaults to 203780

Merchant ID in Pockyt's system. A unique value generated by Pockyt during the onboarding process.

string
required
Defaults to 303661

Store Number in Pockyt's system. A unique value created and assigned by Pockyt's systems when a new store is created under a merchant

string
required
Defaults to 13

The transaction amount

string
required
Defaults to PHP

The supported transaction currencies are "USD", "CNY", "PHP", "IDR", "KRW", "HKD", "THB", "MYR", "GBP", "BDT", "PKR"

string
required
Defaults to USD

When the currency is "GBP", the settlement currency is "GBP". All other currencies settle with "USD"

string
required
Defaults to alipay

The possible payment channels are "alipay", "wechatpay"

string
required

OpenId is obtained from WeChat, and is needed only for the WeChat Mini program

string
required
Defaults to test202001011303

The Invoice Number of the transaction in the merchant's system

string
Defaults to http://zk-tys.yunkeguan.com/ttest/test

The asynchronous notification address. The IPN URL must be secure. For more information, visit the IPN section

string
required
Defaults to MINIPROGRAM

The possible values are: "MINIPROGRAM" for WeChatMini, or "APP" for mobile app

string
Defaults to test+description

The description of the transaction will be displayed on the invoice

string
Defaults to test note

The payment notes

string

The timeout in minutes. The default value is 120

string
required
Defaults to 72a2c6ce8497adc8a03a78135618e666

The parameter signature. It is the calculated MD5 hash value of the API token used to encrypt the request message and authorize transaction requests. For more information, visit Signing API Parameters

Response

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json