blockchyp 2.8.0 → 2.9.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 +4 -4
- data/README.md +14 -14
- data/lib/blockchyp/version.rb +1 -1
- data/lib/blockchyp.rb +9 -1
- 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: dec22643781b543109c1ee22be54efbf5ebc23bb3978ca4b3a2a28d0b87acfef
|
4
|
+
data.tar.gz: ff30a6fc2884d6be12e4909a186278115998c158c9e6a26db804e7007057cc63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f741102b25ab25adaed040dd0aff5b1b620bc1af19ada27358a1077c62ae339a10a5b151b4e2f961b3f6abec1ec3242f649f85cdc40f371f057494710ff66fb7
|
7
|
+
data.tar.gz: 494b8f6c7b8f4acf2c2b5de9ee030401414ee7022997b5a3bbdcb7ba47914d56b13a69e1353d826b1f2e51e621952d7dab283bcb2242bf87c558cfc3d4ab21d8
|
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/version.rb
CHANGED
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
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BlockChyp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|