Example of Online Sales

Api:

https://pms-prod-fps.ttretail.com/tt-pms-ws/rest/online/sales


Request

{
	"apiKey": "pxBf7pn6IswN7b4N",
	"timestamp": 1623399510000,
	"sign": "KkiMG0H1KFHvj/YdbucvZ8SUwgQ=",
	"lang": "zh_hk",
	"storeCode": "WP001",
	"tillId": "01",
	"txDateTime": "2021-06-11T16:18:30+0800",
	"type": "VMPAY",
	"salesman": "WP9999",
	"cashier": "WP9999",
	"amt": 90000,
	"rrn": "002106110418309975314570",
	"extendParam": "{\"subject\":\"Long Desc\",\"seller\":\"Short Desc\"}",
	"returnUrl": "https://www.xxxx.com/checkout-2/order-paid/648",
	"ccy": "HKD",
	"webhookUrl": "https://www.xxx.com/service/order-paid/648"
}


Response

{
	"type": "VMPAY",
	"rrn": "002106110418309975314570",
	"storeCode": "WP001",
	"tillId": "01",
	"tradeMode": "WEBSITE",
	"txDateTime": "2021-06-11T16:18:30+0800",
	"amt": 90000,
	"additionalAmt": 0,
	"ccy": "HKD",
	"lang": "TC",
	"paymentUrl":
"https://pms-prod-fps.ttretail.com/pms-payment/#/eft-payment?value=ACAC81D9FE
B9D13166066F2E4D557EB7FA8962141B1D962E8923CA8910C078708ADD29AE2
083EB527C97384183DDFB045849491618F5A4531639C9B93542A9B2",
	"gwRefCode": "",
	"gwErrorCode": "Approved",
	"gwErrorMessage": "",
	"timeout": 0,
	"errorCode": "0",
	"errorMessage": "成功"
}