effective_orders 6.12.1 → 6.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/deluxe_api.rb +0 -2
- data/lib/effective_orders/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e90f1a83b2e9268d377b28a05fbc423bef5618f2270231e018f04bb0f297ea02
|
4
|
+
data.tar.gz: a4ed543e612da4fddbc2086b30de01ed5252cb53f033db9d538468a4cdd361df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 923d207995eb5f2861cd8425c57902357c9d5141d5169eec8911703051e9be4ecf9e90da6ee71aad88d777ec503d18bcc6478323620ade521a2b995c839a8d64
|
7
|
+
data.tar.gz: 700ab00a86078101fd05a561b7b8c02098a8941f5a9d645e859bfdbafcc40dd363be9dadc3abfefda4b1a9c33673829451f71eefac07261715cec817641f6b2e
|
@@ -33,8 +33,6 @@ module Effective
|
|
33
33
|
# Returns false if there was an error.
|
34
34
|
# Always sets the @purchase_response which is api.payment
|
35
35
|
def purchase!(order, payment_intent)
|
36
|
-
raise('expected a deluxe payment provider') unless ['deluxe', 'deluxe_delayed'].include?(order.payment_provider)
|
37
|
-
|
38
36
|
payment_intent = decode_payment_intent_payload(payment_intent) if payment_intent.kind_of?(String)
|
39
37
|
raise('expected payment_intent to be a Hash') unless payment_intent.kind_of?(Hash)
|
40
38
|
raise('expected a token payment') unless payment_intent['type'] == 'Token'
|