#import<Foundation/Foundation.h>#import<UIKit/UIKit.h>#import "UPPayPluginDelegate.h"/** UnionPay Payment Test Account: Card number: 6226 4401 2345 6785 Password: 111101 * 1. Import frame: Quartzcore.framework,security.framework 2. Call The controller file type for this class is changed to. mm 3. Call this class method 4. Process Payment Results*/@interfaceUppayplugin:nsobject/** * Support non-card trading Static Library * * @param TN Required: (Transaction serial number information, UnionPay background generated, return to the client via the merchant backend and incoming payment control) * @param mode required: Access modes, two values : @ "00": For production environment (official version required), @ "01" for Development test environment (beta required) * @param Viewcontroller required: Merchant Application call Silver teamed machine to pay the current Uiviewcontroller * @param Delegate required: Implementation of the Uppayplugindelegate method Uiviewcontroller * * @return YES or NO*/+ (BOOL) Startpay: (nsstring*) TN mode: (nsstring*) mode Viewcontroller: (uiviewcontroller*) ViewcontrollerDelegate:(ID<UPPayPluginDelegate>)Delegate;@end
Demo:http://pan.baidu.com/s/1eqkzrom
UnionPay official website address: Https://open.unionpay.com/ajweb/help/file
iOS third party payment-UnionPay payment