blockchyp 2.6.0 → 2.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -14
- data/lib/blockchyp.rb +9 -1
- data/lib/blockchyp/version.rb +1 -1
- data/test/batch_history_test.rb +2 -0
- data/test/gateway_timeout_test.rb +2 -0
- data/test/pan_charge_test.rb +2 -0
- data/test/pan_preauth_test.rb +2 -0
- data/test/partial_refund_test.rb +2 -0
- data/test/simple_batch_close_test.rb +2 -0
- data/test/simple_capture_test.rb +2 -0
- data/test/simple_refund_test.rb +2 -0
- data/test/simple_reversal_test.rb +2 -0
- data/test/simple_void_test.rb +2 -0
- data/test/transaction_history_test.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa4dde89e3b6587738af1a9a172d39ec1bc7905c2dc1a125437efffda5d999f2
|
4
|
+
data.tar.gz: 826d33b9a78400d0eae5c495b3192f020d96d1872e4899f24b5961a4b889010e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a46143ddc75ae61ff2ccc1f85da23c135103bf28965aefdf82a2fe6c9bc6dbe96ad4456b804be9ad51882c9e5e531b983121b858d7c7245ed7e070197e5c001a
|
7
|
+
data.tar.gz: c9365143f3aaa8e41359ac1dd8fbf9c1bc430133babd8f066d0edc993f17125b56b7c234e3346cca4d1c1aca342bf9a56e844caabfdd7f972d9b66761c37767b
|
data/README.md
CHANGED
@@ -135,20 +135,20 @@ property instead.
|
|
135
135
|
|
136
136
|
**Card Numbers and Mag Stripes**
|
137
137
|
|
138
|
-
You can also pass in PANs and Mag Stripes, but you probably shouldn't.
|
138
|
+
You can also pass in PANs and Mag Stripes, but you probably shouldn't. This will
|
139
139
|
put you in PCI scope and the most common vector for POS breaches is key logging.
|
140
140
|
If you use terminals for manual card entry, you'll bypass any key loggers that
|
141
141
|
might be maliciously running on the point-of-sale system.
|
142
142
|
|
143
143
|
**Common Variations**
|
144
144
|
|
145
|
-
* **Gift Card Redemption**: There's no special API for gift card redemption in BlockChyp.
|
146
|
-
* **EBT**: Set the `
|
147
|
-
* **Cash Back**: To enable cash back for debit transactions, set the `
|
148
|
-
* **Manual Card Entry**: Set the `
|
149
|
-
* **Inline Tokenization**: You can enroll the payment method in the token vault inline with a charge transaction by setting the `
|
150
|
-
* **Prompting for Tips**: Set the `
|
151
|
-
* **Cash Discounting and Surcharging**: The `
|
145
|
+
* **Gift Card Redemption**: There's no special API for gift card redemption in BlockChyp. Just execute a plain charge transaction and if the customer happens to swipe a gift card, our terminals will identify the gift card and run a gift card redemption. Also note that if for some reason the gift card's original purchase transaction is associated with fraud or a chargeback, the transaction will be rejected.
|
146
|
+
* **EBT**: Set the `CardType` field to `CardType::EBT` to process an EBT SNAP transaction. Note that test EBT transactions always assume a balance of $100.00, so test EBT transactions over that amount may be declined.
|
147
|
+
* **Cash Back**: To enable cash back for debit transactions, set the `CashBack` field. If the card presented isn't a debit card, the `CashBack` field will be ignored.
|
148
|
+
* **Manual Card Entry**: Set the `ManualEntry` field to enable manual card entry. Good as a backup when chips and MSR's don't work or for more secure phone orders. You can even combine the `ManualEntry` field with the `CardType` field set to `CardType::EBT` for manual EBT card entry.
|
149
|
+
* **Inline Tokenization**: You can enroll the payment method in the token vault inline with a charge transaction by setting the `Enroll` field. You'll get a token back in the response. You can even bind the token to a customer record if you also pass in customer data.
|
150
|
+
* **Prompting for Tips**: Set the `PromptForTip` field if you'd like to prompt the customer for a tip before authorization. Good for pay-at-the-table and other service related scenarios.
|
151
|
+
* **Cash Discounting and Surcharging**: The `Surcharge` and `CashDiscount` fields can be used together to support cash discounting or surcharge problems. Consult the Cash Discount documentation for more details.
|
152
152
|
|
153
153
|
|
154
154
|
|
@@ -209,10 +209,10 @@ might be maliciously running on the point-of-sale system.
|
|
209
209
|
|
210
210
|
**Common Variations**
|
211
211
|
|
212
|
-
* **Manual Card Entry**: Set the `
|
213
|
-
* **Inline Tokenization**: You can enroll the payment method in the token vault in line with a charge transaction by setting the `
|
214
|
-
* **Prompting for Tips**: Set the `
|
215
|
-
* **Cash Discounting and Surcharging**:
|
212
|
+
* **Manual Card Entry**: Set the `ManualEntry` field to enable manual card entry. Good as a backup when chips and MSR's don't work or for more secure phone orders. You can even combine the `ManualEntry` field with `CardType` set to `CardType::EBT` for manual EBT card entry.
|
213
|
+
* **Inline Tokenization**: You can enroll the payment method in the token vault in line with a charge transaction by setting the `Enroll` field. You'll get a token back in the response. You can even bind the token to a customer record if you also pass in customer data.
|
214
|
+
* **Prompting for Tips**: Set the `PromptForTip` field if you'd like to prompt the customer for a tip before authorization. You can prompt for tips as part of a preauthorization, although it's not a very common approach.
|
215
|
+
* **Cash Discounting and Surcharging**: The `Surcharge` and `CashDiscount` fields can be used together to support cash discounting or surcharge problems. Consult the Cash Discount documentation for more details.
|
216
216
|
|
217
217
|
|
218
218
|
|
@@ -311,7 +311,7 @@ call this a *free range refund*.
|
|
311
311
|
We don't recommend it, but it is permitted. If you absolutely insist on
|
312
312
|
doing it, pass in a Terminal Name and an amount.
|
313
313
|
|
314
|
-
You can execute a manual or keyed refund by passing the `
|
314
|
+
You can execute a manual or keyed refund by passing the `ManualEntry` field
|
315
315
|
to a free range refund request.
|
316
316
|
|
317
317
|
**Gift Card Refunds**
|
@@ -1623,7 +1623,7 @@ most recent transactions.
|
|
1623
1623
|
|
1624
1624
|
**Limiting Results**
|
1625
1625
|
|
1626
|
-
This API will return a maximum of
|
1626
|
+
This API will return a maximum of 50 results in a single query. Use the `maxResults` property
|
1627
1627
|
to limit maximum results even further and use the `startIndex` property to
|
1628
1628
|
page through results that span multiple queries.
|
1629
1629
|
|
data/lib/blockchyp.rb
CHANGED
@@ -42,6 +42,14 @@ module AVSResponse
|
|
42
42
|
ADDRESS_AND_POSTAL_CODE_MATCH = 'match'
|
43
43
|
end
|
44
44
|
|
45
|
+
module CVMType
|
46
|
+
SIGNATURE = 'Signature'
|
47
|
+
OFFLINE_PIN = 'Offline PIN'
|
48
|
+
ONLINE_PIN = 'Online PIN'
|
49
|
+
CDCVM = 'CDCVM'
|
50
|
+
NO_CVM = 'No CVM'
|
51
|
+
end
|
52
|
+
|
45
53
|
module BlockChyp
|
46
54
|
# the main autogenerated blockchyp client
|
47
55
|
class BlockChyp < BlockChypClient
|
@@ -137,7 +145,7 @@ module BlockChyp
|
|
137
145
|
gateway_request('POST', '/api/capture', request)
|
138
146
|
end
|
139
147
|
|
140
|
-
# Discards a previous
|
148
|
+
# Discards a previous transaction.
|
141
149
|
def void(request)
|
142
150
|
gateway_request('POST', '/api/void', request)
|
143
151
|
end
|
data/lib/blockchyp/version.rb
CHANGED
data/test/batch_history_test.rb
CHANGED
data/test/pan_charge_test.rb
CHANGED
data/test/pan_preauth_test.rb
CHANGED
data/test/partial_refund_test.rb
CHANGED
data/test/simple_capture_test.rb
CHANGED
data/test/simple_refund_test.rb
CHANGED
data/test/simple_void_test.rb
CHANGED
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.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BlockChyp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.0.3
|
85
|
+
rubygems_version: 3.0.3.1
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: BlockChyp Ruby SDK
|