blockchyp 2.30.10 → 2.30.19
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 +0 -66
- 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: 2791de35c01ff9c0e7408f6207a42a42b0ca51b871b788c0894e44044c87a8cd
|
|
4
|
+
data.tar.gz: 4883deeed91eaaaca56b389dc982191f6e57a861b833e4b932079fddc443f67a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6a5bd858117cf7662eca3d8b4ca1572f3af81c8d71878791561df10026804db51afd5d908acd1f45a30edb6d3062a8fc84eba791868e15ca6f07e57975f7707
|
|
7
|
+
data.tar.gz: a9a9b2e1d85b9e88114badba00bf93c3a6aca35b55b3953dc89bffbd8512f19e653387985c07161c0b1e97370f74391ad5671e37770fb249a1153d99406f8e2d
|
data/README.md
CHANGED
|
@@ -81,72 +81,6 @@ 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
|
-
|
|
123
|
-
#### Transient Key
|
|
124
|
-
|
|
125
|
-
Generates a short-lived API key scoped to terminal and payment operations.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
```ruby
|
|
129
|
-
# frozen_string_literal: true
|
|
130
|
-
|
|
131
|
-
require 'blockchyp'
|
|
132
|
-
|
|
133
|
-
blockchyp = BlockChyp::BlockChyp.new(
|
|
134
|
-
ENV['BC_API_KEY'],
|
|
135
|
-
ENV['BC_BEARER_TOKEN'],
|
|
136
|
-
ENV['BC_SIGNING_KEY']
|
|
137
|
-
)
|
|
138
|
-
|
|
139
|
-
# Set request parameters
|
|
140
|
-
request = {
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
response = blockchyp.transientKey(request)
|
|
144
|
-
|
|
145
|
-
puts "Response: #{response.inspect}"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
```
|
|
149
|
-
|
|
150
84
|
#### Charge
|
|
151
85
|
|
|
152
86
|
|
data/lib/blockchyp/version.rb
CHANGED
data/lib/blockchyp.rb
CHANGED
|
@@ -160,6 +160,11 @@ module BlockChyp
|
|
|
160
160
|
route_terminal_request('POST', '/api/text-prompt', '/api/text-prompt', request)
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
+
# Calculates the service fee for a transaction.
|
|
164
|
+
def service_fee(request)
|
|
165
|
+
route_terminal_request('POST', '/api/service-fee', '/api/service-fee', request)
|
|
166
|
+
end
|
|
167
|
+
|
|
163
168
|
# Returns a list of queued transactions on a terminal.
|
|
164
169
|
def list_queued_transactions(request)
|
|
165
170
|
route_terminal_request('POST', '/api/queue/list', '/api/queue/list', 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.30.
|
|
4
|
+
version: 2.30.19
|
|
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-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|