benson 5 lat temu
rodzic
commit
6cfe3dcf47

+ 30 - 2
AllPay在线支付接入规范文档.md

@@ -321,11 +321,39 @@ AllPay 为客户提供统一的API接入,以帮助客户实 现快速、安全
 | RespMsg  | String | M    | 应答消息                                                  |
 | tn       | String | O    | 交易流水号,RespCode为“00”时返回,作为调起 sdk 支付的参数 |
 
-##### 
 
 
+##### 5.4 UP渠道
 
-##### 5.4 CA渠道
+1.H5支付,自适应PC和移动端
+
+ 消费接口专属字段
+
+| 参数      | 类型   | 属性 | 描述 |
+| --------- | ------ | ---- | ---- |
+| tradeFrom | String | M    | "H5" |
+
+2.APP支付
+
+ 消费接口专属字段
+
+| 参数      | 类型   | 属性 | 描述  |
+| --------- | ------ | ---- | ----- |
+| tradeFrom | String | M    | "APP" |
+
+应答报文:
+
+| 参数     | 类型   | 属性 | 描述                                                      |
+| -------- | ------ | ---- | --------------------------------------------------------- |
+| RespCode | String | M    | 应答码 00-成功                                            |
+| RespMsg  | String | M    | 应答消息                                                  |
+| tn       | String | O    | 交易流水号,RespCode为“00”时返回,作为调起 sdk 支付的参数 |
+
+
+
+
+
+##### 5.5CA渠道
 
 1.APP支付
 

BIN
v5/android/android_sdk.zip


BIN
v5/ios/ios_sdk.zip


BIN
v5/ios/ios_sdk/Demo/Demo.xcodeproj/project.xcworkspace/xcuserdata/bensonzhang.xcuserdatad/UserInterfaceState.xcuserstate


+ 14 - 1
v5/ios/ios_sdk/Demo/Demo/ViewController.m

@@ -37,6 +37,13 @@
     [btn2 addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
     [self.view addSubview:btn2];
     
+    UIButton * btn3 = [UIButton buttonWithType:UIButtonTypeRoundedRect];
+    btn3.tag = 3;
+    btn3.frame = CGRectMake(80, 180, 200, 50);
+    [btn3 setTitle:@"银联支付" forState:UIControlStateNormal];
+    [btn3 addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
+    [self.view addSubview:btn3];
+    
   
 }
 -(void)btnClick:(UIButton *)btn
@@ -79,6 +86,12 @@
         
     }
     
+    if (btn.tag == 3)//银联
+    {
+        [paramDic setObject:@"UP" forKey:@"paymentSchema"];
+        
+    }
+    
     [self startPay:paramDic];
     
 }
@@ -87,7 +100,7 @@
 {
   [paramDic setObject:[SignUtil getSign:paramDic] forKey:@"signature"];
     
- NSString *url = @"https://local.allpay-test.com/api/unifiedorder";
+ NSString *url = @"https://testapi.allpayx.com/api/unifiedorder";
     
    //  NSString *url = @"https://api.allpayx.com/api/unifiedorder";