確認訂單
接口描述
URL | /index.php?route=checkout/confirm/api |
功能描述 | 確認訂單 |
返回格式 | Json,UTF8 |
HTTP請求方式 | POST |
返回參數
參數名 | 參數全稱 | 必选 | 參數類型 | 參數描述 |
---|
payment | payment | true | JSONArray/Bool | 付款說明 |
详细字段:payment
父字段 | 字段 | 必选 | 字段类型 | 字段描述 |
---|
payment | text_instruction | false | String | 標題 |
| text_description | false | String | 描述 |
| text_payment | false | String | 說明 |
| bank | false | String | 转账事项 |
| continue | true | String | 確認訂單鏈接 |
调用示例
/index.php?route=checkout/confirm/api
響應示例
{
"success": true,
"message": "",
"products":[
{
"cart_id":"38",
"product_id":"76",
"name":"女士服裝",
"model":"0",
"option":[
{
"name":"顏色",
"value":"粉紅"
},
{
"name":"尺寸",
"value":"Medium"
}
],
"recurring":"",
"quantity":"1",
"subtract":"1",
"price":"HK $288.00",
"total":"HK $288.00",
"href":"/index.php?route=product/product/api&product_id=76"
}
......
],
"totals":[
{
"title":"商品總額",
"text":"HK $288.00"
},
{
"title":"到本商店自取",
"text":"HK $0.00"
},
{
"title":"優惠券 (222aaa)",
"text":"HK $-57.60"
},
{
"title":"訂單總額",
"text":"HK $230.40"
}
],
/*银行转账*/
"payment":{
"text_instruction":"银行转帐说明",
"text_description":"请将总金额转入以下银行帐户。",
"text_payment":"在我们收到付款之前,您的订单将不会运送。",
"bank":"中國銀行 012-123456-001 付款後,請把收據 WhatsApp 傳送到 +852 2345 6789",
"continue":"/index.php?route=extension/payment/bank_transfer/confirm"
}
/*PAYPAL*/
"payment":{
"continue":"/index.php?route=extension/payment/pp_express/checkoutapi"
}
}
PAYPAL
接口描述
URL | /index.php?route=extension/payment/pp_express/checkoutapi |
功能描述 | PAYPAL付款 |
返回格式 | Json,UTF8 |
HTTP請求方式 | GET |
返回參數
參數名 | 參數全稱 | 必选 | 參數類型 | 參數描述 |
---|
continue | continue | true | String | PAYPAL付款鏈接 |
调用示例
/index.php?route=extension/payment/pp_express/checkoutapi
響應示例
{
"success": true,
"message": "",
"continue": "https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=token&useraction=commit"
}
聯絡我們
接口描述
URL | /index.php?route=information/contact/api |
功能描述 | 聯絡我們 |
返回格式 | Json,UTF8 |
HTTP請求方式 | POST |
業務參數
參數名 | 參數全稱 | 必选 | 參數类型 | 參數描述 |
---|
name | name | true | String | 名稱 |
email | email | true | String | 電郵 |
subject | subject | true | String | 主題 |
enquiry | enquiry | true | String | 內容 |
返回參數
參數名 | 參數全稱 | 必选 | 參數類型 | 參數描述 |
---|
store | store | true | String | 商店名稱 |
address | address | true | String | 地址 |
geocode | geocode | true | String | 谷歌地圖鏈接 |
config_email | config_email | true | String | 電郵 |
telephone | telephone | true | Int | 電話 |
fax | fax | true | Int | 傳真 |
调用示例
/index.php?route=information/contact/api
響應示例
{
"success": true,
"message": "",
"store":"商店名稱",
"address":"Address 1Address 1Address 1Address 1Address 1",
"geocode":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3691.487144753047!2d114.17427131495461!3d22.29740898532505!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zMjLCsDE3JzUwLjciTiAxMTTCsDEwJzM1LjMiRQ!5e0!3m2!1sen!2s!4v1475203837656",
"geocode_hl":"zh-HK",
"config_email":"admin@admin.com",
"telephone":"123456789",
"fax":"987654321",
"open":"",
"comment":"",
"image":false,
"locations":[
]
}
關於我們
接口描述
URL | /index.php?route=information/information/about |
功能描述 | 關於我們 |
返回格式 | Json,UTF8 |
HTTP請求方式 | GET |
返回參數
參數名 | 參數全稱 | 必选 | 參數類型 | 參數描述 |
---|
image | image | true | String | 圖片 |
title | title | true | String | 標題 |
description | description | true | String | 描述 |
调用示例
/index.php?route=information/information/about
響應示例
{
"success": true,
"message": "",
"image":"/image/catalog/0161117104731.png",
"title":"關於我們",
"description":"<p>描述描述描述描述描述描述描述描述<br></p>",
"meta_title":"About Us",
"meta_description":"",
"meta_keyword":""
}