Skip to main content

Place an Order


Create a pre-order transaction and make payment through the returned information.

Info

{domain}/Servlet/JSAPIService.do

https://vmp.eftpay.com.cn/VMP/Servlet/JSAPIService.do

NameTypeDescriptionRequirement
serviceStringInterface name, see Supported service
user_confirm_keyString(12)User Key, provided by eftPay
transaction_amountString(8)Amount. Requires digits, maximum decimal length is 2
out_trade_noString(28)Merchant order number
payTypeString(6)Payment type, see Supported payType
buyerTypeString(7)Device type
iosandroidothers
subjectString(256)Transaction information
walletString(20)Wallet type, see Supported wallet
bodyString(128)In the case of needing to describe various goods, it is recommended to accumulate the description of the goods
pay_sceneStringPayment scene, please pass WEB by default, see Supported pay_scene
fee_typeString(5)Currency type, HKDCNY
Default:HKD
tidString(20)Merchant terminal number
notify_urlString(240)Notification address, production environment only supports 80 and 443 ports, other ports need to apply
return_urlString(240)The return address after payment is completed. Cannot carry parameters, production environment only supports 80 and 443 ports, other ports need to apply
active_timeStringValid time, in seconds. Default 30 minutes, i.e. 1800
langStringLanguage, fixed value:cnenhk,see Supported lang
customerInfoObjectCustomer information, valid when payment type is ATOME, see ATOME parameter description
shippingAddressObjectShipping address, valid when payment type is ATOME, see ATOME parameter description
billingAddressObjectBilling address, valid when payment type is ATOME, see ATOME parameter description
itemsObject[]Detailed information about the order items, valid when payment type is ATOME, see ATOME parameter description
schemeStringAPP application scheme, useful when APP uses webview nested payment method. Valid when payment type is UnionPay
packageNameStringAPP application package name, useful when APP uses webview nested payment method. Valid when payment type is UnionPay
app_linkStringAPP link, return to APP after payment. Valid when wallet type is BOCVMPUPI
timeStringTime, format:yyyyMMddHHmmss
signString(64)Signature

View the supported services and their corresponding payType and wallet

Below is the correspondence between service, payType and wallet

servicepayTypewalletDescription
service.alipay.wap.PreOrderAlipayALIPAYCN
ALIPAYHK
Alipay wap interface
service.wechat.web.MobileH5WeChatWECHATCN
WECHATHK
Non-WeChat mobile browser H5 interface
service.wechat.oauth2.AuthorizeWeChatWECHATCN
WECHATHK
WeChat public H5 interface
service.icbc.wap.PreOrderICBCICBCWAPICBC wap interface
service.atome.v2.wap.PreOrderATOMEATOMEATOME online interface
service.unionpay.online.web.PreOrderUnionPayUNIONPAYUnionPay online cashier interface
service.oct.online.PreOrderOCTOCTOctopus online payment interface
service.fdms.web.PreOrderFdmsFDMSFDMS's VISA, Master payment
service.mpgs.web.PreOrderMpgsMPGSMPGS's VISA, Master payment
service.ae.web.PreOrderAEAEAE payment
service.jetco.wap.PreOrderJetcoJETCOHKJetco wap interface
service.payme.web.PreOrderPAYMEPAYMEPayMe web payment interface
service.bocvmp.upi.wap.PreOrderBOCVMPBOCVMPUPIBOCPay wap interface
View the supported services and their corresponding pay_scene

Please pass WEB by default. When using the following interfaces, pay attention to the corresponding payment scenarios

servicepay_scene
service.wechat.oauth2.AuthorizeWXWEB
service.alipay.wap.PreOrderWAP
service.jetco.wap.PreOrderWAP
service.unionpay.online.web.PreOrderONLINE_WEB
service.payme.web.PreOrderWEB/APP
service.bocvmp.upi.wap.PreOrderH5/APP

Tips

  • When pay_scene= WEB , the PayMe web payment interface returns a QR code payment page link for PC.
  • When pay_scene= APP , the PayMe web payment interface returns a PayMe APP invocation link for mobile.
  • When pay_scene= H5 , the BOCPay wap interface will return a BOCPay APP launch link. After payment is completed, the default browser will open and redirect to the return_url.
  • When pay_scene= APP , the BOCPay wap interface will return a BOCPay APP launch link. After payment is completed, it will redirect to the app_link, and the parameters need to be verified by yourself.
  • For launching the BOCPay APP, refer to BOCPay Integration Guide v1.1.1
View the services that support lang

cn is Simplified Chinese, hk is Traditional Chinese, and en is English

servicelang
service.oct.online.PreOrdercnenhk
service.mpgs.web.PreOrdercnenhk
service.ae.web.PreOrdercnenhk
service.jetco.wap.PreOrdercnenhk

transaction_amount

In PAYME UAT environment, the transaction status can be controlled by the two decimal places of the transaction_amount

Decimal PlacesDescriptionExample
81Creates a [successful] transactiontransaction_amount=0.81
80Creates a [timeout] transactiontransaction_amount=0.80
77Creates a [failed] transactiontransaction_amount=0.77
44Creates a [server error - no payment QR code]transaction_amount=0.44
45Creates a [server error - no state] transactiontransaction_amount=0.45

customerInfo
NameTypeDescriptionRequirement
mobileNumberStringCustomer's mobile number in E.164 format. For example, the international format for Chinese phone numbers (mobile and landline) is +8610123456. +861xxxxxxxxxx
fullNameStringCustomer's full name

Example

"customerInfo": {
	"mobileNumber": "+8613344445555",
	"fullName": "Atome Developer"
}
shippingAddress
NameTypeDescriptionRequirement
countryCodeStringShipping address, two-digit country/region code in ISO-3611 format. For example, "SG" "HK" "MY" "ID" "TH" "TW" "VN" "PH"
linesArrayShipping address, address lines. For example, ["China", "Hong Kong", "Kowloon", ...]
postCodeStringShipping address, postal code

Example

"shippingAddress": {
	"countryCode": "HK",
	"lines": ["China", "Hong Kong"],
	"postCode": "999077"
}
billingAddress
NameTypeDescriptionRequirement
countryCodeStringThe country/region code of the delivery address in ISO-3611 format. For example, "SG" "HK" "MY" "ID" "TH" "TW" "VN" "PH"
linesArrayThe lines of the delivery address. For example, ["China", "Hong Kong", "Kowloon", ...]
postCodeStringThe postal code of the delivery address

Example

"shippingAddress": {
	"countryCode": "HK",
	"lines": ["China", "Hong Kong"],
	"postCode": "999077"
}
items
NameTypeDescriptionRequirement
itemIdStringThe ID of this product/SKU
nameStringThe name of the item
quantityIntThe quantity of the item
priceIntThe price of the item in cents

Example

"items": [{
	"itemId": "P100",
	"name": "iPhone 12 pro max",
	"price": 11020,
	"quantity": 1
}, {
	"itemId": "P101",
	"name": "iPhone SE case",
	"price": 1000,
	"quantity": 1
}]

The translation of the Chinese text in the document is as follows:

NameTypeDescriptionRequirement
return_statusString(3)Return status code, represents . Note: This parameter cannot be used as a judgment of whether the transaction status is successful
Other status codes see Appendix 3
return_charString(100)Return description, may change, cannot be used as a condition judgment
Return when return_status is greater than 00
timeStringTime, format: yyyyMMddHHmmss
return_status >= 00 return
signString(64)Signature
return_status >= 00 return

NameTypeDescriptionRequirement
pay_apptradeStringTransaction initiation information
user_confirm_keyStringUser Key, provided by eftPay
out_trade_noString(28)Merchant order number
payTypeString(6)Payment type
buyerTypeString(7)Device type
walletString(20)Wallet type
eft_trade_noString(28)Yifude order number
fee_typeString(5)Currency
transaction_amountString(8)Transaction amount
tidString(20)Terminal number, returned when the consumption request is sent

{
	"pay_scene": "WAP",
	"user_confirm_key": "12345678",
	"wallet": "ALIPAYHK",
	"subject": "中文测试 test",
	"transaction_amount": "0.02",
	"sign": "af8f9f9d60019ce649af1ddfefd2aae98fa71656278a6edf439948cab7dc69d9",
	"body": "中文测试 test",
	"tid": "",
	"payType": "Alipay",
	"out_trade_no": "20190824010716",
	"service": "service.alipay.wap.PreOrder",
	"buyerType": "andriod",
	"return_url": "https://vmp.eftpay.com.cn/VMP/notify/testing",
	"time": "20190824010716"
}

{
	"user_confirm_key": "12345678",
	"wallet": "ALIPAYHK",
	"pay_apptrade": "https://vmp.eftpay.com.cn/VMP/wap/payPage?userkey=12345678&outTradeNo=20190824010716&sign=5c24f30f758d86e2ba1cc1a291aa6d392f563180584f071d2d725eff52947f05",
	"return_char": "",
	"transaction_amount": "0.02",
	"sign": "11c2d25ad95a8849a7598ca57b83731d0e2c2019710c7dd3feccbd8895d6d01c",
	"fee_type": "HKD",
	"tid": "",
	"eft_trade_no": "08520005269190824010701722",
	"out_trade_no": "20190824010716",
	"payType": "Alipay",
	"buyerType": "andriod",
	"return_status": "00",
	"time": "20190824010717"
}