iOS第三方支付-银联支付

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "UPPayPluginDelegate.h"

/**
    银联支付
    测试账号:
    卡号: 6226 4401 2345 6785
    密码: 111101
 
 *  1.导入框架:QuartzCore.framework,Security.framework
    2.调用本类的控制器文件类型要改为.mm
    3.调用本类方法
    4.处理支付结果
 
 */

@interface UPPayPlugin : NSObject
/**
 *  支持无卡交易静态库
 *
 *  @param tn             必填:(交易流水号信息,银联后台生成,通过商户后台返回到客户端并传入支付控件)
 *  @param mode           必填:接入模式,两个值:@“00”:代表生产环境(正式版需要),@“01”代表开发测试环境(测试版需要)
 *  @param viewController 必填:商户应用程序调用银联手机支付的当前UIViewController
 *  @param delegate       必填:实现UPPayPluginDelegate方法的UIViewController
 *
 *  @return YES or NO
 */
+ (BOOL)startPay:(NSString*)tn mode:(NSString*)mode viewController:(UIViewController*)viewController delegate:(id<UPPayPluginDelegate>)delegate;


@end

Demo下载地址:http://pan.baidu.com/s/1eQkzROm

银联官网地址:https://open.unionpay.com/ajweb/help/file

原文地址:https://www.cnblogs.com/hxwj/p/4554240.html