{"action":"published","release":{"url":"https://api.github.com/repos/Pacific3/SwiftyOpenPay/releases/2421939","assets_url":"https://api.github.com/repos/Pacific3/SwiftyOpenPay/releases/2421939/assets","upload_url":"https://uploads.github.com/repos/Pacific3/SwiftyOpenPay/releases/2421939/assets{?name,label}","html_url":"https://github.com/Pacific3/SwiftyOpenPay/releases/tag/v0.1","id":2421939,"tag_name":"v0.1","target_commitish":"master","name":"SwiftyOpenPay v0.1","draft":false,"author":{"login":"OscarSwanros","id":629157,"avatar_url":"https://avatars.githubusercontent.com/u/629157?v=3","gravatar_id":"","url":"https://api.github.com/users/OscarSwanros","html_url":"https://github.com/OscarSwanros","followers_url":"https://api.github.com/users/OscarSwanros/followers","following_url":"https://api.github.com/users/OscarSwanros/following{/other_user}","gists_url":"https://api.github.com/users/OscarSwanros/gists{/gist_id}","starred_url":"https://api.github.com/users/OscarSwanros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OscarSwanros/subscriptions","organizations_url":"https://api.github.com/users/OscarSwanros/orgs","repos_url":"https://api.github.com/users/OscarSwanros/repos","events_url":"https://api.github.com/users/OscarSwanros/events{/privacy}","received_events_url":"https://api.github.com/users/OscarSwanros/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2016-01-13T18:50:10Z","published_at":"2016-01-13T18:51:16Z","assets":[],"tarball_url":"https://api.github.com/repos/Pacific3/SwiftyOpenPay/tarball/v0.1","zipball_url":"https://api.github.com/repos/Pacific3/SwiftyOpenPay/zipball/v0.1","body":"This is the initial release for `SwiftyOpenPay`.\r\n\r\n**SwiftyOpenPay** is an ***unoficial*** OpenPay API client for iOS written in Swift. \r\n\r\nUse at your own risk.\r\n\r\n## Instalation\r\n\r\n`SwiftyOpenPay` can be installed using [Carthage](https://github.com/Carthage/Carthage).\r\n\r\nIn your Cartfile, include `SwiftyOpenPay`:\r\n\r\n```\r\ngithub \"Pacific3/SwiftyOpenPay\" ~> 0.1\r\n```\r\n\r\n## Usage\r\n\r\n```swift\r\nimport SwiftyOpenPay\r\n\r\nlet myAddress = Address(\r\n    line1: \"1 Infinite Loop\",\r\n    city: \"Cupertino\",\r\n    state: \"California\",\r\n    countryCode: \"US\",\r\n    postalCode: \"95014\"\r\n)\r\n\r\nlet myCard = Card(\r\n    holderName: \"John Doe\",\r\n    expirationMonth: \"12\",\r\n    expirationYear: \"19\",\r\n    address: myAddress,\r\n    number: \"XXXXXXXXXXXX\"\r\n)\r\n\r\nlet openPay = SwiftyOpenPay(merchantId: \"MyMerchantId\", apiKey: \"MyAPIKey\")\r\n\r\ndo {\r\n    try openPay.createTokenWithCard(myCard,\r\n        completion: {token in\r\n            print(token.id)\r\n        },\r\n        error: {error in\r\n            print(error)\r\n        }\r\n    )\r\n} catch {\r\n    print(error)\r\n}\r\n```\r\n\r\n# Disclaimer\r\nSwiftyOpenPay is not an oficial [Openpay](http://www.openpay.mx) product. Openpay is not responsible for either this code or what you use it for.\r\nThe use of SwiftyOpenPay is your and only your responsability.\r\n\r\nOpenpay does provide an officially supported version of their iOS API client, which can be found over at [their GitHub page.](https://github.com/open-pay/openpay-ios)\r\n\r\nRefer to Openpay's [Privacy Notice](http://www.openpay.mx/aviso-de-privacidad.html) and [Terms of Service](http://www.openpay.mx/terminos-servicio.html).\r\n"}}