paystack_sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.standard.yml +3 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +82 -0
- data/Rakefile +10 -0
- data/lib/paystack_sdk/client.rb +41 -0
- data/lib/paystack_sdk/resources/base.rb +39 -0
- data/lib/paystack_sdk/resources/transactions.rb +76 -0
- data/lib/paystack_sdk/version.rb +5 -0
- data/lib/paystack_sdk.rb +9 -0
- data/mise.toml +2 -0
- data/sig/paystack_sdk.rbs +4 -0
- metadata +136 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c6c4ffb56d54aca1c129d5f8d9c825e31f0c4f0df719a95c324eb8b220156f2f
|
4
|
+
data.tar.gz: 8a5a351599e8795c3c61deb5d8d2737c5fb5e445e20bf7c72b357bf0fb84f0ca
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c9c76e4b0ef258ac320e4088d15ba07d7703d3436ad57246b22ab079873b9a0f590553dd0b712d8e2c2a4a3220c41090000d1fa115b83650a5e00780d519f033
|
7
|
+
data.tar.gz: cf9454f62965fbc0555303a83f658ebf6cf7f249605a263a429dfa6d5da9810db5bb4b5ed76ea844f0228bb391ce21b0143b7a7846f343515705d07b5479e248
|
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-3.3.5
|
data/.standard.yml
ADDED
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
10
|
+
identity and orientation.
|
11
|
+
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
13
|
+
diverse, inclusive, and healthy community.
|
14
|
+
|
15
|
+
## Our Standards
|
16
|
+
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
18
|
+
community include:
|
19
|
+
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
24
|
+
and learning from the experience
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
26
|
+
community
|
27
|
+
|
28
|
+
Examples of unacceptable behavior include:
|
29
|
+
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
31
|
+
any kind
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
33
|
+
* Public or private harassment
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
35
|
+
without their explicit permission
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
37
|
+
professional setting
|
38
|
+
|
39
|
+
## Enforcement Responsibilities
|
40
|
+
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
44
|
+
or harmful.
|
45
|
+
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
49
|
+
decisions when appropriate.
|
50
|
+
|
51
|
+
## Scope
|
52
|
+
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
54
|
+
an individual is officially representing the community in public spaces.
|
55
|
+
Examples of representing our community include using an official email address,
|
56
|
+
posting via an official social media account, or acting as an appointed
|
57
|
+
representative at an online or offline event.
|
58
|
+
|
59
|
+
## Enforcement
|
60
|
+
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
62
|
+
reported to the community leaders responsible for enforcement at
|
63
|
+
[INSERT CONTACT METHOD].
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
65
|
+
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
67
|
+
reporter of any incident.
|
68
|
+
|
69
|
+
## Enforcement Guidelines
|
70
|
+
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
73
|
+
|
74
|
+
### 1. Correction
|
75
|
+
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
77
|
+
unprofessional or unwelcome in the community.
|
78
|
+
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
82
|
+
|
83
|
+
### 2. Warning
|
84
|
+
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
86
|
+
actions.
|
87
|
+
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
93
|
+
ban.
|
94
|
+
|
95
|
+
### 3. Temporary Ban
|
96
|
+
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
98
|
+
sustained inappropriate behavior.
|
99
|
+
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
101
|
+
communication with the community for a specified period of time. No public or
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
104
|
+
Violating these terms may lead to a permanent ban.
|
105
|
+
|
106
|
+
### 4. Permanent Ban
|
107
|
+
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
111
|
+
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
113
|
+
community.
|
114
|
+
|
115
|
+
## Attribution
|
116
|
+
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
118
|
+
version 2.1, available at
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
120
|
+
|
121
|
+
Community Impact Guidelines were inspired by
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
123
|
+
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
127
|
+
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2025 Maxwell Nana Forson (theLazyProgrammer)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# Paystack Ruby SDK: Simplify Payments
|
2
|
+
|
3
|
+
The `paystack_sdk` gem provides a simple and intuitive interface for interacting with Paystack's payment gateway API. It allows developers to easily integrate Paystack's payment processing features into their Ruby applications. With support for various endpoints, this SDK simplifies tasks such as initiating transactions, verifying payments, managing customers, and more.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'paystack_sdk'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
```bash
|
16
|
+
bundle install
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
```bash
|
22
|
+
gem install paystack_sdk
|
23
|
+
```
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Here’s a basic example of how to use the `paystack_sdk` gem:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'paystack_sdk'
|
31
|
+
|
32
|
+
# Initialize the SDK with your Paystack secret key
|
33
|
+
paystack = PaystackSdk::Client.new(api_key: "sk_test_xxx")
|
34
|
+
|
35
|
+
# Example: Initialize a payment
|
36
|
+
params = {email: "customer@email.com", amount: "2300", currency: "USD"}
|
37
|
+
response = paystack.transactions.initialize_transaction(params)
|
38
|
+
|
39
|
+
# Example: Verify a payment
|
40
|
+
response = paystack.transactions.verify(reference: "transaction_reference")
|
41
|
+
if paystack.transactions.success?
|
42
|
+
puts "Payment verified successfully!"
|
43
|
+
else
|
44
|
+
puts "Payment verification failed: #{response.error_message}"
|
45
|
+
end
|
46
|
+
|
47
|
+
# Note: The `response` object is a hash containing the API response. Use the `#success?`
|
48
|
+
# method on the relevant resource instance (e.g., `transactions`, `plans`, `subscriptions`)
|
49
|
+
# to determine if the request was successful.
|
50
|
+
```
|
51
|
+
|
52
|
+
Refer to the [documentation](https://github.com/nanafox/paystack_sdk) for more detailed usage examples and supported endpoints.
|
53
|
+
|
54
|
+
## Development
|
55
|
+
|
56
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
57
|
+
|
58
|
+
To install this gem onto your local machine, run:
|
59
|
+
|
60
|
+
```bash
|
61
|
+
bundle exec rake install
|
62
|
+
```
|
63
|
+
|
64
|
+
To release a new version, update the version number in `version.rb`, and then run:
|
65
|
+
|
66
|
+
```bash
|
67
|
+
bundle exec rake release
|
68
|
+
```
|
69
|
+
|
70
|
+
This will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
71
|
+
|
72
|
+
## Contributing
|
73
|
+
|
74
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/nanafox/paystack_sdk](https://github.com/nanafox/paystack_sdk). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/nanafox/paystack_sdk/blob/main/CODE_OF_CONDUCT.md).
|
75
|
+
|
76
|
+
## License
|
77
|
+
|
78
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
79
|
+
|
80
|
+
## Code of Conduct
|
81
|
+
|
82
|
+
Everyone interacting in the PaystackSdk project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [code of conduct](https://github.com/nanafox/paystack_sdk/blob/main/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "resources/transactions"
|
4
|
+
|
5
|
+
module PaystackSdk
|
6
|
+
# The `Client` class serves as the main entry point for interacting with the Paystack API.
|
7
|
+
# It initializes a connection to the Paystack API and provides access to various resources.
|
8
|
+
class Client
|
9
|
+
# The base URL for the Paystack API.
|
10
|
+
BASE_URL = "https://api.paystack.co"
|
11
|
+
|
12
|
+
# Initializes a new `Client` instance.
|
13
|
+
#
|
14
|
+
# @param api_key [String] The secret API key for authenticating with the Paystack API.
|
15
|
+
#
|
16
|
+
# @example
|
17
|
+
# client = PaystackSdk::Client.new(api_key: "sk_test_xxx")
|
18
|
+
def initialize(api_key:)
|
19
|
+
@connection = Faraday.new(url: BASE_URL) do |conn|
|
20
|
+
conn.request :json
|
21
|
+
conn.response :json, content_type: /\bjson$/
|
22
|
+
conn.headers["Authorization"] = "Bearer #{api_key}"
|
23
|
+
conn.headers["Content-Type"] = "application/json"
|
24
|
+
conn.headers["User-Agent"] = "paystack_sdk/#{PaystackSdk::VERSION}"
|
25
|
+
conn.adapter Faraday.default_adapter
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Provides access to the `Transactions` resource.
|
30
|
+
#
|
31
|
+
# @return [PaystackSdk::Resources::Transactions] An instance of the
|
32
|
+
# `Transactions` resource.
|
33
|
+
#
|
34
|
+
# @example
|
35
|
+
# transactions = client.transactions
|
36
|
+
# response = transactions.initialize_transaction(params)
|
37
|
+
def transactions
|
38
|
+
@transactions ||= Resources::Transactions.new(@connection)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module PaystackSdk
|
2
|
+
module Resources
|
3
|
+
# The `Base` class serves as a parent class for all resource classes in the SDK.
|
4
|
+
# It provides shared functionality, such as handling API responses.
|
5
|
+
class Base
|
6
|
+
# Initializes a new `Base` instance.
|
7
|
+
#
|
8
|
+
# @param connection [Faraday::Connection] The Faraday connection object used for API requests.
|
9
|
+
def initialize(connection)
|
10
|
+
@connection = connection
|
11
|
+
end
|
12
|
+
|
13
|
+
# Checks if the last API response was successful.
|
14
|
+
#
|
15
|
+
# @return [Boolean] `true` if the last API response was successful, otherwise `false`.
|
16
|
+
def success?
|
17
|
+
@api_response&.success? || false
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
# Handles the API response, raising an error if the response is unsuccessful.
|
23
|
+
#
|
24
|
+
# @param response [Faraday::Response] The response object returned by the Faraday connection.
|
25
|
+
# @return [Hash] The parsed response body if the request was successful.
|
26
|
+
# @raise [PaystackSdk::Error] If the response indicates an error.
|
27
|
+
def handle_response(response)
|
28
|
+
@api_response ||= response
|
29
|
+
|
30
|
+
if response.success?
|
31
|
+
response.body
|
32
|
+
else
|
33
|
+
error_message = response.body.is_a?(Hash) ? response.body["message"] : "Paystack API Error"
|
34
|
+
raise PaystackSdk::Error, error_message
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "base"
|
4
|
+
|
5
|
+
module PaystackSdk
|
6
|
+
module Resources
|
7
|
+
# The `Transactions` class provides methods for interacting with the Paystack Transactions API.
|
8
|
+
# It allows you to initialize transactions, verify payments, list transactions, and fetch transaction details.
|
9
|
+
class Transactions < PaystackSdk::Resources::Base
|
10
|
+
# Initializes a new transaction.
|
11
|
+
#
|
12
|
+
# @param payload [Hash] The payload containing transaction details (e.g., email, amount, currency).
|
13
|
+
# @return [Hash] The response from the Paystack API.
|
14
|
+
# @raise [PaystackSdk::Error] If the payload is invalid or the API request fails.
|
15
|
+
#
|
16
|
+
# @example
|
17
|
+
# payload = { email: "customer@email.com", amount: 10000, currency: "GHS" }
|
18
|
+
# response = transactions.initialize_transaction(payload)
|
19
|
+
def initialize_transaction(payload)
|
20
|
+
raise PaystackSdk::Error, "Invalid payload" unless payload.is_a?(Hash)
|
21
|
+
response = @connection.post("/transaction/initialize", payload)
|
22
|
+
handle_response(response)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Verifies a transaction using its reference.
|
26
|
+
#
|
27
|
+
# @param reference [String] The unique reference for the transaction.
|
28
|
+
# @return [Hash] The response from the Paystack API.
|
29
|
+
# @raise [PaystackSdk::Error] If the API request fails.
|
30
|
+
#
|
31
|
+
# @example
|
32
|
+
# response = transactions.verify("transaction_reference")
|
33
|
+
def verify(reference:)
|
34
|
+
response = @connection.get("/transaction/verify/#{reference}")
|
35
|
+
handle_response(response)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Lists all transactions.
|
39
|
+
#
|
40
|
+
# @return [Hash] The response from the Paystack API containing a list of transactions.
|
41
|
+
# @raise [PaystackSdk::Error] If the API request fails.
|
42
|
+
#
|
43
|
+
# @example
|
44
|
+
# response = transactions.list
|
45
|
+
def list
|
46
|
+
response = @connection.get("/transaction")
|
47
|
+
handle_response(response)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Fetches details of a single transaction by its ID.
|
51
|
+
#
|
52
|
+
# @param id [Integer] The ID of the transaction to fetch.
|
53
|
+
# @return [Hash] The response from the Paystack API containing transaction details.
|
54
|
+
# @raise [PaystackSdk::Error] If the API request fails.
|
55
|
+
#
|
56
|
+
# @example
|
57
|
+
# response = transactions.fetch("transaction_id")
|
58
|
+
def fetch(id)
|
59
|
+
response = @connection.get("/transaction/#{id}")
|
60
|
+
handle_response(response)
|
61
|
+
end
|
62
|
+
|
63
|
+
# Fetches the totals of all transactions.
|
64
|
+
#
|
65
|
+
# @return [Hash] The response from the Paystack API containing transaction totals.
|
66
|
+
# @raise [PaystackSdk::Error] If the API request fails.
|
67
|
+
#
|
68
|
+
# @example
|
69
|
+
# response = transactions.totals
|
70
|
+
def totals
|
71
|
+
response = @connection.get("/transaction/totals")
|
72
|
+
handle_response(response)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
data/lib/paystack_sdk.rb
ADDED
data/mise.toml
ADDED
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: paystack_sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Maxwell Nana Forson (theLazyProgrammer)
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-05-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.13.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.13.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: standard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.49.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.49.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: irb
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.15.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.15.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 13.2.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 13.2.1
|
83
|
+
description: |
|
84
|
+
The `paystack_sdk` gem provides a simple and intuitive interface for
|
85
|
+
interacting with Paystack's payment gateway API. It allows developers to
|
86
|
+
easily integrate Paystack's payment processing features into their Ruby
|
87
|
+
applications. With support for various endpoints, this SDK simplifies tasks
|
88
|
+
such as initiating transactions, verifying payments, managing customers, and more.
|
89
|
+
email:
|
90
|
+
- nanaforsonjnr@gmail.com
|
91
|
+
executables: []
|
92
|
+
extensions: []
|
93
|
+
extra_rdoc_files: []
|
94
|
+
files:
|
95
|
+
- ".rspec"
|
96
|
+
- ".ruby-version"
|
97
|
+
- ".standard.yml"
|
98
|
+
- CHANGELOG.md
|
99
|
+
- CODE_OF_CONDUCT.md
|
100
|
+
- LICENSE.txt
|
101
|
+
- README.md
|
102
|
+
- Rakefile
|
103
|
+
- lib/paystack_sdk.rb
|
104
|
+
- lib/paystack_sdk/client.rb
|
105
|
+
- lib/paystack_sdk/resources/base.rb
|
106
|
+
- lib/paystack_sdk/resources/transactions.rb
|
107
|
+
- lib/paystack_sdk/version.rb
|
108
|
+
- mise.toml
|
109
|
+
- sig/paystack_sdk.rbs
|
110
|
+
homepage: https://github.com/nanafox/paystack_sdk
|
111
|
+
licenses:
|
112
|
+
- MIT
|
113
|
+
metadata:
|
114
|
+
allowed_push_host: https://rubygems.org
|
115
|
+
homepage_uri: https://github.com/nanafox/paystack_sdk
|
116
|
+
changelog_uri: https://github.com/nanafox/paystack_sdk/blob/main/CHANGELOG.md
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 3.2.2
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
requirements: []
|
132
|
+
rubygems_version: 3.5.16
|
133
|
+
signing_key:
|
134
|
+
specification_version: 4
|
135
|
+
summary: A Ruby SDK for integrating with Paystack's payment gateway API.
|
136
|
+
test_files: []
|