mango-ios 0.1.0

mango-ios 0.1.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2015年1月

Ezequiel Becerra 维护。



mango-ios 0.1.0

  • Mango 开发团队,Ezequiel Becerra 和 Gonzalo Larralde

Mango SDK for iOS

安装

我们使用 CocoaPods

pod 'mango-ios', :git => 'https://github.com/mango/mango-ios.git'

如何使用

设置

#import <mango-ios/Mango.h>

...

[Mango sharedInstance].publicAPIKey = @"some_public_api_key";

标记信用卡

[mango createTokenWithNumber:@"4507990000000010"
                        type:@"visa"
                  holdername:@"Test Visa"
             expirationMonth:10
              expirationYear:2015
                         CCV:@"023"
             completionBlock:^(NSError *error, NSDictionary *data) {
                if (error) {
                  // Handle error with grace 
                } else {
                  // Success! Get your credit card token from data
                }
             }];

创建 CCV

[mango createCCV:@"123" completionBlock:^(NSError *error, NSDictionary *data) {
  if (error) {
    // Handle error with grace 
  } else {
    // Success! Get your credit card token from data
  }
}];