{"repo":"deanpcmad/paddle","free":true,"listed":false,"github":"https://github.com/deanpcmad/paddle","clone":"git clone https://github.com/deanpcmad/paddle.git","description":"Ruby library for the Paddle API","language":"Ruby","stars":27,"topics":["ruby","rubygem","paddle","payment-gateway","payments"],"license":null,"category":"auth-billing-email","readme_excerpt":"Paddle Ruby Library The easiest and most complete Ruby library for the Paddle APIs, both Classic and Billing. Installation Add this line to your application's Gemfile: Billing API For accessing the new Billing API from Paddle. For more info, view the Paddle Billing page. Configuration Firstly you'll need to generate and set your API Key and the environment. You can find and generate an API key here for production, or here for sandbox Connection Options You can pass options to the underlying Faraday connection using connection options . This is useful for setting timeouts, proxies, or SSL configuration: Resources The gem maps as closely as we can to the Paddle API so you can easily convert API examples to gem code. Responses are created as objects like Paddle::Product . Having types like Paddle::Product is handy for understanding what type of object you're working with. They're built using OpenStruct so you can easily access data in a Ruby-ish way. Pagination Some of the endpoints return pages of results. The result object will have a data key to access the results. An example of using collections, including pagination: Caveats [!NOTE] The Paddle API doesn't take nil values for optional parameters. If you want to remove a value, you'll need to pass \"null\" instead. Error Handling When API requests fail, the gem provides detailed error information to help you debug issues. Errors are raised as exceptions with comprehensive details including field-level validation errors. Error S","default_branch":null,"files":null,"tree":[],"storefront":"/r/deanpcmad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/deanpcmad/paddle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}