blockchyp 2.28.1 → 2.30.0

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: 83f4b4695e4b5937359afc54ce7b13dea7615cf0a4a5d7007fda9471a046fc44
4
- data.tar.gz: 1724471128332ec87d7a309efbd14d99b3fe04bc327751161fbf06de07e53075
3
+ metadata.gz: 7f55d0acf552e42c9857da011e418e2473a34e884f3b1e1bd4832853c98fe48e
4
+ data.tar.gz: 22564745c1afa8e67029ff58b9d6fef2936298d758f41b9091135f0f862185a2
5
5
  SHA512:
6
- metadata.gz: d7dfef139b6dac682d4eab386fad6de3907f731b664bddb631b67d667960cbb678ecef500782acc9e26af3737e3a00dccd5a830ac1bb0b6009a10e007a643519
7
- data.tar.gz: e025d0168fb8a5f5f14c717f19b74cfca29cc6f8950100a4625bef29805a084e7843f3d56e45cb0061c3c4740b39791b0db9366c45d63e092ead5b45ab54a14f
6
+ metadata.gz: 24c62fd5c61aa0879d0fe956b81fe5374ab4ad80121942bdf1c93758fa9801df4a1d9058f4305ed28c6d46d40e24be1ff66f65ea6892b1b14e731ac473e0302d
7
+ data.tar.gz: e6b153bbaa15bd35212b6291604693c95ee5acb7f41d0e3cc13d8ab70069d86b00f702f3b303b764fe6657f6ef83020450457e98b7ce51141182e4b0f6a45a46
data/README.md CHANGED
@@ -81,6 +81,45 @@ These are the core payment APIs used to execute and work with payment transactio
81
81
 
82
82
 
83
83
 
84
+ #### Surcharge Review
85
+
86
+
87
+
88
+ * **API Credential Types:** Merchant
89
+ * **Required Role:** Payment API Access
90
+
91
+ This API calculates surcharge information for a payment request.
92
+
93
+ If you're using BlockChyp's surcharging features, you can use this endpoint
94
+ to preview the surcharge amounts before processing a transaction. This allows
95
+ you to display accurate pricing information to customers before completing
96
+ the payment.
97
+
98
+
99
+
100
+
101
+ ```ruby
102
+ # frozen_string_literal: true
103
+
104
+ require 'blockchyp'
105
+
106
+ blockchyp = BlockChyp::BlockChyp.new(
107
+ ENV['BC_API_KEY'],
108
+ ENV['BC_BEARER_TOKEN'],
109
+ ENV['BC_SIGNING_KEY']
110
+ )
111
+
112
+ # Set request parameters
113
+ request = {
114
+ }
115
+
116
+ response = blockchyp.surchargeReview(request)
117
+
118
+ puts "Response: #{response.inspect}"
119
+
120
+
121
+ ```
122
+
84
123
  #### Charge
85
124
 
86
125
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlockChyp
4
- VERSION = '2.28.1'
4
+ VERSION = '2.30.0'
5
5
  end
data/lib/blockchyp.rb CHANGED
@@ -180,6 +180,11 @@ module BlockChyp
180
180
  gateway_request('POST', '/api/terminal-locate', request)
181
181
  end
182
182
 
183
+ # Calculates surcharge information for a payment request.
184
+ def surcharge_review(request)
185
+ gateway_request('POST', '/api/surcharge-review', request)
186
+ end
187
+
183
188
  # Captures a preauthorization.
184
189
  def capture(request)
185
190
  gateway_request('POST', '/api/capture', request)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blockchyp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.28.1
4
+ version: 2.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlockChyp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-30 00:00:00.000000000 Z
11
+ date: 2026-02-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: