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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c03bb9f7dac356482968d6f001891089c925b179faed1b22f95f9b07c517aa74
4
- data.tar.gz: 37ea92fc17e2d1a3e6fb5397df6e96dbe6d8e013816e312cb38ed4ccb6722671
3
+ metadata.gz: cfe0137a6cc918043bc34e2be6dcb579713ef3dfec0641763234e66d51e08717
4
+ data.tar.gz: a331be86e1c23da3621d4b6a1d6d6c5ecfa31de7685c3776872b3ff6f3adc99d
5
5
  SHA512:
6
- metadata.gz: 61b2525bd9207c4e3173deef634d1fa1298fe79a97c76eacff072fc606843a60b45bd5c657d17014fe507bf2aa297d71d3beb9bbcafc7d8fdcc01a4ec4bcf397
7
- data.tar.gz: 81145b4c48f151413970819905a1952502eb7e57873a5c7b82e618a9f006e2185847f7526a6cc348b332d727151524a4cdf529b8f39e8e63b7c70d680469b830
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.original_message # => This will return the exact response received from Paystack
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 initialize_transaction(payload)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaystackSdk
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
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.2
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 00:00:00.000000000 Z
11
+ date: 2025-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday