blockchyp 2.28.0 → 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 +4 -4
- data/README.md +39 -0
- data/lib/blockchyp/version.rb +1 -1
- data/lib/blockchyp.rb +5 -0
- 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: 7f55d0acf552e42c9857da011e418e2473a34e884f3b1e1bd4832853c98fe48e
|
|
4
|
+
data.tar.gz: 22564745c1afa8e67029ff58b9d6fef2936298d758f41b9091135f0f862185a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/blockchyp/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|