iOS third party payment-UnionPay payment

Source: Internet
Author: User

#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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.