{"id":28754251,"url":"https://github.com/zeroasterisk/slidepay_ios","last_synced_at":"2025-06-17T01:08:14.188Z","repository":{"id":10989817,"uuid":"13310319","full_name":"zeroasterisk/SlidePay_iOS","owner":"zeroasterisk","description":"Core SDK for SlidePay","archived":false,"fork":false,"pushed_at":"2013-10-03T18:58:53.000Z","size":1278,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-11T05:08:22.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":false,"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/zeroasterisk.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":"2013-10-03T21:28:13.000Z","updated_at":"2014-08-19T21:59:34.000Z","dependencies_parsed_at":"2022-09-02T01:22:00.422Z","dependency_job_id":null,"html_url":"https://github.com/zeroasterisk/SlidePay_iOS","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/zeroasterisk/SlidePay_iOS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FSlidePay_iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FSlidePay_iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FSlidePay_iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FSlidePay_iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeroasterisk","download_url":"https://codeload.github.com/zeroasterisk/SlidePay_iOS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FSlidePay_iOS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260269462,"owners_count":22983647,"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","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":[],"created_at":"2025-06-17T01:08:11.806Z","updated_at":"2025-06-17T01:08:14.173Z","avatar_url":"https://github.com/zeroasterisk.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"SlidePay iOS\n=====================\n\n## About\nThe SlidePay iOS SDK allows you to incorporate swiped and keyed credit card transactions into your iOS application.\n\n## Installation\nYou'll need [cocoapods](http://cocoapods.org/)! Once you've got that installed, open the terminal and:\n\n```\n$ cd /path/to/MyProject\n$ edit Podfile\nplatform :ios, '5.0'\npod 'SlidePay_iOS', :git =\u003e 'https://github.com/SlidePay/SlidePay_iOS.git'\n```\nWe aren't in the main podspec repo [yet], but this should get you up and running just fine.\n\nNow, for the actual installation, do:\n```\n$ pod install\n```\nThat's it! Make sure, as per the instructions that were spit out during the install, to only use the MyProject.xcworkspace when building your project.\n\n## Code Snippets\nBefore using any other parts of the API, you must authenticate:\n\n```objc\n    SPAuthenticate *auth = [SPAuthenticate new];\n    auth.username = @\"username@whatever.com\";\n    auth.password = @\"password\";\n    [auth login:^{\n        NSLog(@\"auth successs\");\n    } failure:^(NSInteger serverCode, NSString *serverMessage, NSError *error) {\n        NSLog(@\"auth fail\");\n    }];\n```\n\nOnce you've successfully authenticated, you can start to make, get, and refund payments.\n\nA keyed in transaction:\n```objc\n    SPPayment *payment = [[SPPayment alloc] initWithCardNumber:@\"4111111111111111\" zipCode:@\"11111\" cvv:@\"111\" expMonth:@\"04\" expYear:@\"15\"];\n    payment.amount = @1;\n    [payment payWithSuccessHandler:^(NSInteger paymentID, NSInteger orderID, NSData *responseData) {\n        \n        NSLog(@\"response: %@\",response);\n        [self refund:paymentID];\n        \n    } failure:^(NSInteger serverCode, NSString *serverMessage, NSError *error) {\n\n    }];\n```\n\nA swiped Magensa transaction:\n```objc\nSPPayment *payment = [[SPPayment alloc] initWithPaymentDictionary:@{\n                                                                        @\"vendor\":@\"magensa\",\n                                                                        @\"ksn\":@\"the device ksn\",\n                                                                        @\"trackdata\":\u003cgetResponseData from your magtek library\u003e,\n                                                                        @\"serial\":@\"device serial\"\n                                                                        }];\n    payment.amount = @1;\n    [payment payWithSuccessHandler:^(NSInteger paymentID, NSInteger orderID, NSData *responseData) {\n       \n        NSLog(@\"magensa response: %@\",response);\n        [self refund:paymentID];\n        \n    } failure:^(NSInteger serverCode, NSString *serverMessage, NSError *error) {\n    \n    }];\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 SlidePay\n\n\n##Contact\n\nPlease contact api@slidepay.com with any questions.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Fslidepay_ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroasterisk%2Fslidepay_ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Fslidepay_ios/lists"}