paystack_sdk 0.0.2 → 0.0.3
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 +4 -4
- data/README.md +2 -2
- data/lib/paystack_sdk/resources/transactions.rb +1 -1
- data/lib/paystack_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfe0137a6cc918043bc34e2be6dcb579713ef3dfec0641763234e66d51e08717
|
4
|
+
data.tar.gz: a331be86e1c23da3621d4b6a1d6d6c5ecfa31de7685c3776872b3ff6f3adc99d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de4c777e2d89ce4cf1e30a13a352d4dab8bee5696716af0eb771964ce3aad3a10b0a6381c67b64c42dea342954c5e6d69d05b75fa43e72c288f55eeb45192a7d
|
7
|
+
data.tar.gz: cc889820541066ea486dfe9b4aa86d1009c692efd7c1fa52929a0791ae1f954ecabd0c66bb75b733bae0af44398e6687004867a78dc64bf7f33b33ec81eaebbc
|
data/README.md
CHANGED
@@ -53,7 +53,7 @@ end
|
|
53
53
|
|
54
54
|
### The Orginal Response
|
55
55
|
|
56
|
-
There will times you may need access to the original API response. For such cases, you
|
56
|
+
There will be times you may need access to the original API response. For such cases, you
|
57
57
|
can use the `#original_response` method on the response object.
|
58
58
|
|
59
59
|
The return value is a hash with all the values from the HTTP request. This could be useful
|
@@ -63,7 +63,7 @@ For example
|
|
63
63
|
```ruby
|
64
64
|
response = transaction.list
|
65
65
|
|
66
|
-
puts response.
|
66
|
+
puts response.original_response # => This will return the exact response received from Paystack
|
67
67
|
```
|
68
68
|
|
69
69
|
|
@@ -46,7 +46,7 @@ module PaystackSdk
|
|
46
46
|
# @example
|
47
47
|
# payload = { email: "customer@email.com", amount: 10000, currency: "GHS" }
|
48
48
|
# response = transactions.initialize_transaction(payload)
|
49
|
-
def
|
49
|
+
def initiate(payload)
|
50
50
|
raise PaystackSdk::Error, "Payload must be a hash" unless payload.is_a?(Hash)
|
51
51
|
response = @connection.post("/transaction/initialize", payload)
|
52
52
|
handle_response(response)
|
data/lib/paystack_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paystack_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxwell Nana Forson (theLazyProgrammer)
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|