{"id":32309663,"url":"https://github.com/assemblypayments/ios-sdk","last_synced_at":"2026-05-30T22:31:53.467Z","repository":{"id":62451186,"uuid":"49476289","full_name":"AssemblyPayments/ios-sdk","owner":"AssemblyPayments","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-16T04:27:28.000Z","size":76,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-10-23T08:42:58.861Z","etag":null,"topics":["platforms"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AssemblyPayments.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-12T05:04:38.000Z","updated_at":"2020-02-25T00:26:49.000Z","dependencies_parsed_at":"2022-11-01T22:46:22.921Z","dependency_job_id":null,"html_url":"https://github.com/AssemblyPayments/ios-sdk","commit_stats":null,"previous_names":["promisepay/ios-sdk"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AssemblyPayments/ios-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AssemblyPayments%2Fios-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AssemblyPayments%2Fios-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AssemblyPayments%2Fios-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AssemblyPayments%2Fios-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AssemblyPayments","download_url":"https://codeload.github.com/AssemblyPayments/ios-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AssemblyPayments%2Fios-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27677311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["platforms"],"created_at":"2025-10-23T08:32:19.898Z","updated_at":"2025-12-12T06:01:18.940Z","avatar_url":"https://github.com/AssemblyPayments.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PromisePay - iOS SDK\n\n[![CI Status](http://img.shields.io/travis/KevinHakans/PromisePay.svg?style=flat)](https://travis-ci.org/KevinHakans/PromisePay)\n[![Version](https://img.shields.io/cocoapods/v/PromisePay.svg?style=flat)](http://cocoapods.org/pods/PromisePay)\n[![License](https://img.shields.io/cocoapods/l/PromisePay.svg?style=flat)](http://cocoapods.org/pods/PromisePay)\n[![Platform](https://img.shields.io/cocoapods/p/PromisePay.svg?style=flat)](http://cocoapods.org/pods/PromisePay)\n\n#1. Installation\n\n## Manual\n\nDownload the latest release from GitHub, then add the PromisePay holder to your relevant xcode project.\n\n## CocoaPods\n\nPromisePay is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"PromisePay\"\n```\n\n#2. Usage\nImport the header and create PromisePay object.\n```Objective-C\n#import \"PromisePay.h\"\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n\n    // Initialize the PromisePay with the Environment and PublickKey\n    PromisePay *promisePay = [[PromisePay alloc] initWithEnvironment:@\"prelive\" publicKey:@\"cbd748a608eda8635e1f325d914080b4\"];\n\n    // Create the Card\n    PPCard *card = [[PPCard alloc] initWithNumber:@\"4111111111111111\"\n                                         fullName:@\"Bobby Buyer\"\n                                      expiryMonth:@\"12\"\n                                       expiryYear:@\"2020\"\n                                              cvv:@\"123\"];\n    [promisePay createCardAccount:@\"460b3a207121352b1d48aa0724734e4b\" card:card callBack:^(id  result, NSError * error) {\n        // TODO: process with the callback\n    }];\n}\n\n```\n\n###Using the card scanner\n\nDeclare conformity to the `PromisePayCardScannerDelegate` protocol.\n```Objective-C\n#import \"PromisePayCardScanner.h\"\n\n@interface ViewController : UIViewController \u003cPromisePayCardScannerDelegate\u003e\n\n@end\n```\n\nImplement the delegate methods in your view controller.\n```Objective-C\n#import \"PromisePay.h\"\n\n@interface ViewController ()\n\n@property (nonatomic, strong) PromisePay *promisePay;\n@property (nonatomic, strong) PromisePayCardScanner *promisePayCardScanner;\n\n@end\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n\n    // Initialize the PromisePay with the Environment and PublickKey\n    PromisePay *promisePay = [[PromisePay alloc] initWithEnvironment:@\"prelive\" publicKey:@\"cbd748a608eda8635e1f325d914080b4\"];\n\n    // Initialize the PromisePayCardScanner\n    self.promisePayCardScanner = [[PromisePayCardScanner alloc] init];\n    self.promisePayCardScanner.delegate = self;\n\n}\n\n#pragma mark - PromisePayCardScannerDelegate methods\n\n- (void)userDidScanCard:(PPCard *)card {\n    [self.promisePay createCardAccount:@\"460b3a207121352b1d48aa0724734e4b\" card:card callBack:^(id  result, NSError * error) {\n        // TODO: process with the callback\n    }];\n}\n\n- (void)userDidCancelCardScanning {\n    NSLog(@\"user cancelled\");\n}\n\n@end\n```\n\nStart the card scanner\n```Objective-C\n[self.promisePayCardScanner scanCardFromViewController:self];\n```\n\n#3. Examples\n##Configuration\nInitialize PromisePay using as following.\n```Objective-C\nPromisePay *promisePay = [[PromisePay alloc] initWithEnvironment:@\"prelive\" publicKey:@\"PUBLIC_KEY\"];\n```\n\n\n##Create Card Account\nCreate the PPCard object with the information of card like this.\n```ObjectiveC\nPPCard *card = [[PPCard alloc] initWithNumber:@\"4111111111111111\"\n                                     fullName:@\"Bobby Buyer\"\n                                  expiryMonth:@\"12\"\n                                   expiryYear:@\"2020\"\n                                          cvv:@\"123\"];\n```\n\nNow calling the createCardAccount method, you can get the callback of result.\n````ObjectiveC\n[promisePay createCardAccount:@\"CARD_TOKEN\" card:card callBack:^(id  _Nonnull result, NSError * _Nonnull error) {\n    if(error != nil) {\n        NSLog(@\"error = %@\", error);\n    }\n    else {\n        NSLog(@\"Succeed to create card account, result=%@\", result);\n    }\n}];\n```\n\nAlternatively use the card scanner to return a PPCard object by implementing the delegate methods.\n```ObjectiveC\n- (void)userDidScanCard:(PPCard *)card {\n    [self.promisePay createCardAccount:@\"460b3a207121352b1d48aa0724734e4b\" card:card callBack:^(id  result, NSError * error) {\n        // TODO: process with the callback\n    }];\n}\n\n- (void)userDidCancelCardScanning {\n    NSLog(@\"user cancelled\");\n}\n```\n\nStart the card scanner\n```Objective-C\n[self.promisePayCardScanner scanCardFromViewController:self];\n```\n\n#4. License\n\nPromisePay is available under the MIT license. See the LICENSE file for more info.\n\n#5. Requirements\n\nThird-party open source libraries used within PromisePay:\n\n1. [CardIO](https://github.com/card-io/card.io-iOS-SDK) - Credit card scanning\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemblypayments%2Fios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassemblypayments%2Fios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemblypayments%2Fios-sdk/lists"}