{"id":23274074,"url":"https://github.com/abacatepay/abacatepay-ruby-sdk","last_synced_at":"2025-08-02T01:11:48.949Z","repository":{"id":267889099,"uuid":"902665491","full_name":"AbacatePay/abacatepay-ruby-sdk","owner":"AbacatePay","description":"AbacatePay Ruby SDK for you to start receiving payments in seconds","archived":false,"fork":false,"pushed_at":"2024-12-13T03:00:10.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-13T03:48:53.993Z","etag":null,"topics":["abacatepay","abacatepay-sdk","ruby"],"latest_commit_sha":null,"homepage":"https://www.abacatepay.com/","language":"Ruby","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/AbacatePay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-13T02:51:21.000Z","updated_at":"2024-12-13T03:01:38.000Z","dependencies_parsed_at":"2024-12-13T03:48:57.131Z","dependency_job_id":"c722feed-32f2-47e8-8ab0-8ea75ba43176","html_url":"https://github.com/AbacatePay/abacatepay-ruby-sdk","commit_stats":null,"previous_names":["abacatepay/abacatepay-ruby-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbacatePay%2Fabacatepay-ruby-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbacatePay%2Fabacatepay-ruby-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbacatePay%2Fabacatepay-ruby-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbacatePay%2Fabacatepay-ruby-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbacatePay","download_url":"https://codeload.github.com/AbacatePay/abacatepay-ruby-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230494926,"owners_count":18235047,"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":["abacatepay","abacatepay-sdk","ruby"],"created_at":"2024-12-19T20:11:48.637Z","updated_at":"2024-12-19T20:11:49.282Z","avatar_url":"https://github.com/AbacatePay.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AbacatePay SDK for Ruby on Rails\n\n## 💻 Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'abacatepay-ruby'\n```\n\nAnd then execute:\n\n```bash\nbundle install\n```\n\nOr install it yourself as:\n\n```bash\ngem install abacatepay-ruby\n```\n\n## 🔧 Configuration\n\nConfigure your API token and environment in an initializer:\n\n```ruby\n# config/initializers/abacatepay.rb\nAbacatePay.configure do |config|\n  config.api_token = ENV['ABACATEPAY_TOKEN']\n  config.environment = :sandbox # or :production\nend\n```\n\n## 🌟 Resources\n\n### Billing\n\n**Initialize the Billing Client**\n\n```ruby\nbilling_client = AbacatePay::Clients::BillingClient.new\n```\n\n**List Billings**\n\nRetrieve a list of all billings:\n\n```ruby\nbilling_client.list\n```\n\n**Create a Billing**\n\nTo create a billing, use the following code:\n\n```ruby\nbilling_client.create(\n  AbacatePay::Resources::Billing.new(\n    frequency: AbacatePay::Enums::Billing::Frequencies::ONE_TIME,\n    methods: [AbacatePay::Enums::Billing::Methods::PIX],\n    products: [\n      AbacatePay::Resources::Billing::Product.new(\n        external_id: 'abc_123',\n        name: 'Product A',\n        description: 'Description of product A',\n        quantity: 1,\n        price: 100 # Price in cents\n      )\n    ],\n    metadata: AbacatePay::Resources::Billing::Metadata.new(\n      return_url: 'https://www.abacatepay.com',\n      completion_url: 'https://www.abacatepay.com'\n    ),\n    customer: AbacatePay::Resources::Customer.new(\n      metadata: AbacatePay::Resources::Customer::Metadata.new(\n        name: 'Abacate Lover',\n        cellphone: '01912341234',\n        email: 'lover@abacate.com',\n        tax_id: '13827826837'\n      )\n    )\n  )\n)\n```\n\nAlternatively, you can use a previously created customer by specifying their ID:\n\n```ruby\nAbacatePay::Resources::Customer.new(\n  id: 'cust_DEbpqcN...'\n)\n```\n\n### Customer\n\n**Initialize the Customer Client**\n\n```ruby\ncustomer_client = AbacatePay::Clients::CustomerClient.new\n```\n\n**List Customers**\n\nRetrieve a list of all customers:\n\n```ruby\ncustomer_client.list\n```\n\n**Create a Customer**\n\nTo create a customer, use the following code:\n\n```ruby\ncustomer_client.create(\n  AbacatePay::Resources::Customer.new(\n    metadata: AbacatePay::Resources::Customer::Metadata.new(\n      name: 'Abacate Lover',\n      cellphone: '01912341234',\n      email: 'lover@abacate.com',\n      tax_id: '13827826837'\n    )\n  )\n)\n```\n\n## 📚 Documentation\n\nFor detailed information about the API and SDK, refer to the official documentation:\nhttps://abacatepay.readme.io/reference\n\n## 🤝 Contribution\n\nContributions are welcome! If you wish to contribute:\n\n1. Fork the repository\n2. Create a new branch for your feature or fix:\n\n```bash\ngit checkout -b feature/your-feature-name\n```\n\n3. Make your changes and commit them:\n\n```bash\ngit commit -m \"Add your detailed commit message here\"\n```\n\n4. Push to your branch:\n\n```bash\ngit push origin feature/your-feature-name\n```\n\n5. Open a pull request with a clear description of your changes\n\nPlease ensure your code:\n\n- Includes proper documentation\n- Follows Ruby style guidelines\n- Includes appropriate tests\n- Passes all existing tests (bundle exec rspec)\n- Passes code style checks (bundle exec rubocop)\n\n### Happy coding! 🚀","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabacatepay%2Fabacatepay-ruby-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabacatepay%2Fabacatepay-ruby-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabacatepay%2Fabacatepay-ruby-sdk/lists"}