solidus_six_saferpay 0.1.8 → 0.1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solidus_six_saferpay/gateway.rb +13 -12
- data/lib/solidus_six_saferpay/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2169c1b1f790ec1dcc28392c40f539850b50763f19b05aa8f081065c58cf45f
|
4
|
+
data.tar.gz: 664168547eb8918651455a7b63c0c7ab97e641fdd9495041ce7a4aefbbbff0b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b39396e4cc40b5329e510c9744564ad0296a756ab4ff6e467bee60bc44b7825ff5359b4aebde2ea479ded6f986b96c02f44ea527ef77d022da8e87dd02d10810
|
7
|
+
data.tar.gz: 582f78f26f3ea9b03e99f9ad28a95551ededba3c38003085a4d0952afffbc381a2317859df484948d98bc0a5e58d28ca510a1a890406b39552cb394047f16469
|
@@ -87,23 +87,24 @@ module SolidusSixSaferpay
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def refund(amount, transaction_id, options = {})
|
90
|
-
|
91
|
-
|
90
|
+
Rollbar.error("Disabled Refund for: #{transaction_id}")
|
91
|
+
# payment = Spree::Payment.find_by!(response_code: transaction_id)
|
92
|
+
# refund_amount = Spree::Money.new(amount, currency: payment.currency)
|
92
93
|
|
93
|
-
saferpay_amount = SixSaferpay::Amount.new(value: refund_amount.cents, currency_code: payment.currency)
|
94
|
-
saferpay_refund = SixSaferpay::Refund.new(amount: saferpay_amount, order_id: payment.order.number)
|
95
|
-
capture_reference = SixSaferpay::CaptureReference.new(capture_id: payment.transaction_id)
|
94
|
+
# saferpay_amount = SixSaferpay::Amount.new(value: refund_amount.cents, currency_code: payment.currency)
|
95
|
+
# saferpay_refund = SixSaferpay::Refund.new(amount: saferpay_amount, order_id: payment.order.number)
|
96
|
+
# capture_reference = SixSaferpay::CaptureReference.new(capture_id: payment.transaction_id)
|
96
97
|
|
97
|
-
payment_refund = SixSaferpay::SixTransaction::Refund.new(refund: saferpay_refund, capture_reference: capture_reference)
|
98
|
+
# payment_refund = SixSaferpay::SixTransaction::Refund.new(refund: saferpay_refund, capture_reference: capture_reference)
|
98
99
|
|
99
|
-
if refund_response = SixSaferpay::Client.post(payment_refund)
|
100
|
+
# if refund_response = SixSaferpay::Client.post(payment_refund)
|
100
101
|
|
101
|
-
|
102
|
-
|
103
|
-
end
|
102
|
+
# # actually capture the refund
|
103
|
+
# capture(amount, refund_response.transaction.id, options)
|
104
|
+
# end
|
104
105
|
|
105
|
-
rescue SixSaferpay::Error => e
|
106
|
-
handle_error(e, refund_response)
|
106
|
+
# rescue SixSaferpay::Error => e
|
107
|
+
# handle_error(e, refund_response)
|
107
108
|
end
|
108
109
|
|
109
110
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_six_saferpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8
|
4
|
+
version: 0.1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Kiener
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -366,8 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
366
366
|
- !ruby/object:Gem::Version
|
367
367
|
version: '0'
|
368
368
|
requirements: []
|
369
|
-
|
370
|
-
rubygems_version: 2.7.6
|
369
|
+
rubygems_version: 3.0.3
|
371
370
|
signing_key:
|
372
371
|
specification_version: 4
|
373
372
|
summary: Saferpay Payment Page and Transaction payment methods for Solidus
|