<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                **1.初始化收銀臺** ~~~[api] //- (void)initCashierVCWithOrderInfo:(NSDictionary *)orderInfo; *nsdictionary:orderInfo#訂單信息 <<< orderInfo 訂單信息 字典里的字段 | field name | data type | most | description | appId string yes 品牌ID requestTime string yes 發送請求時間,如:20190226153808 signType string yes 加密方式(md5) version string yes 版本號(1.0) orderId string yes 訂單編號(123456789012) orderName string yes 訂單名稱(13.3英寸MacBook銀色) orderAmount string yes 訂單金額(元) totalFee string yes 支付金額(元) storeId string yes 店鋪id(4450) attach string yes 附加數據,在查詢接口和支付通知中原樣返回,該字段主要用于商戶攜帶訂單的自定義數據 body string yes 商品描述,訂單信息 mchCreateIp string yes 訂單生成的機器 IP orderTime string yes 業務訂單生成時間(20190226153808) timeExpire string yes 業務訂單支付過期時間(20190226153808) customid string yes 會員編號(MDA2MDQ5NDcO0O0O) callbackUrl string yes 回調地址 subject string yes 商品的標題/交易標題/訂單標題/訂單關鍵字等 orderList string yes 訂單集合orderList集合含子訂單號、子訂單金額、店鋪id、店鋪名稱 例: [{"outOrderNo":"sw20190417001013222","outOrderAmount":15.00,"storeId":"4450","storeName":"商戶名稱1"},{"outOrderNo":"sw20190417001013332","outOrderAmount":25.00,"storeId":"4458","storeName":"商戶名稱2"}] prepareUrl string yes 參數加密接口 mainIp string yes 收銀臺服務器域名 limitPay string no 禁用支付方式(nowx|noali|nounion|nojycoin|nobalance|notbj) key string yes 簽名加密要使用 <<< 示例 NSDictionary *orderInfoDict = @{ @"appId":appId, @"requestTime":requestTime, @"signType":signType, @"version":version, @"orderId":orderId, @"orderName":orderName, @"orderAmount":orderAmount, @"totalFee":totalFee, @"storeId":storeId, @"attach":attach, @"body":body, @"mchCreateIp":mchCreateIp, @"orderTime":orderTime, @"timeExpire":timeExpire, @"customid":customid, @"callbackUrl":callbackUrl, @"subject":subject, @"orderList":orderListStr, @"limitPay":limitPay, @"prepareUrl":prepareUrl, @"mainIp":mainIp, @"key":key }; [[CashierManager shareManager] initCashierVCWithOrderInfo:orderInfoDict]; ~~~ ******************************************************************** **2.獲取收銀臺支付類型** ~~~[api] //- (void)getPayTypelistWithParDict:(NSDictionary *)parDict result:(resultBlock)result; *nsdictionary:parDict#參數字典 block:result#請求結果 <<< parDict 字典里的字段 | field name | data type | most | description | appId string yes 品牌id requestTime string yes 請求時間(20190226153808) version string yes 版本(1.0) signType string yes 簽名加密類型(md5) storeId string yes 店鋪id totalFee string yes 支付金額 (int 單位為分) outOrderId string yes 訂單id(123456789012) customid string yes 會員id limitPay string no 禁用支付方式(nowx|noali|nounion|nojycoin|nobalance|notbj) <<< 示例 NSDictionary *dic = @{ @"appId":appId, @"requestTime":requestTime, @"signType":signType, @"version":version, @"storeId":storeId, @"customid":customid, @"limitPay":limitPay, @"totalFee":totalFee, @"outOrderId":outOrderId, }; [[CashierManager shareManager] getPayTypelistWithParDict:dic result:^(id _Nullable responseObject, NSError * _Nonnull error) { }]; ~~~ ******************************************************************** **3.支付** ~~~[api] //- (void)startPayWithParDict:(NSDictionary *)parDict result:(resultBlock)result; *nsdictionary:parDict#參數字典 block:result#請求結果 <<< parDict 字典里的字段 | field name | data type | most | description | appId string yes 品牌id requestTime string yes 請求時間(20190226153808) version string yes 版本(1.0) signType string yes 簽名加密類型(md5) outOrderId string yes 業務訂單 outOrderTime string yes 業務訂單生成時間20190226153808 outOrderAmount string yes 業務訂單金額 (int 單位為分) totalFee string yes 支付金額(int 單位為分) timeExpire string yes 業務訂單支付過期時間20091225091010 callbackUrl string yes 回調地址 orderList string yes 訂單集合orderList集合含子訂單號、子訂單金額、店鋪id、店鋪名稱 例: [{"outOrderNo":"sw20190417001013222","outOrderAmount":15.00,"storeId":"4450","storeName":"商戶名稱1"},{"outOrderNo":"sw20190417001013332","outOrderAmount":25.00,"storeId":"4458","storeName":"商戶名稱2"}] payInfo string yes 支付信息 例: [{"type":"app_wx","amount":"10"},{"type":"app_tb","amount":"90"}] amount單位為分 type:支付類型目前有六種:app_wx app微信 , app_ali app支付寶 ,app_upay app云閃付,app_tb app通寶 ,app_tbj app通寶+,app_zz app至尊余額 deduction string yes 是否有通寶抵扣(0無 1有) customid string no 會員id body string no 商品描述 attach string no 附加數據,在查詢接口和支付通知中原樣返回,該字段主要用于商戶攜帶訂單的自定義數據 mchCreateIp string no 訂單生成的機器 IP subject string no 商品的標題/交易標題/訂單標題/訂單關鍵字等 payPwd string no 支付密碼,體系內非通寶抵扣需要支付密碼 <<< 示例 NSDictionary *dic = @{ @"appId":appId, @"requestTime":requestTime, @"signType":signType, @"version":version, @"outOrderId":outOrderId, @"outOrderTime":outOrderTime, @"outOrderAmount":outOrderAmount, @"totalFee":totalFee, @"timeExpire":timeExpire, @"callbackUrl":callbackUrl, @"customid":customid, @"orderList":orderList, @"body":body, @"attach":attach, @"mchCreateIp":mchCreateIp, @"subject":subject, @"deduction":deduction, @"payInfo":payInfo, @"payPwd":payPwd, }; [[CashierManager shareManager] startPayWithParDict:dic result:^(id _Nullable responseObject, NSError * _Nonnull error) { }]; ~~~ ********************************************************************
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看