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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96b400cf874bdda08cfb33f3030d266f58444ec30e8e002ece965b5cb3ae83e3
4
- data.tar.gz: c1b05c8a67b4399814684d412c0fed4f60903a62d102bbda5d2929ba5ac81a4d
3
+ metadata.gz: e2169c1b1f790ec1dcc28392c40f539850b50763f19b05aa8f081065c58cf45f
4
+ data.tar.gz: 664168547eb8918651455a7b63c0c7ab97e641fdd9495041ce7a4aefbbbff0b2
5
5
  SHA512:
6
- metadata.gz: dc50f1d3e2be9d70f340b78a9f12f9fbd2cd7b531862fa56c0fbe1c9717cf44e067d1b74f31899532988bea30280ad7e25688348534e02c4712e4634cada9b0b
7
- data.tar.gz: 545277b46dbb2bb516e04c90903b3b8878b031a0a741f29361bd1af71c9d9395e055035d512c4c2f1207c58a5416dc831b0ee3f0ccb459cf6a7b12c1317d72f4
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
- payment = Spree::Payment.find_by!(response_code: transaction_id)
91
- refund_amount = Spree::Money.new(amount, currency: payment.currency)
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
- # actually capture the refund
102
- capture(amount, refund_response.transaction.id, options)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSixSaferpay
4
- VERSION = '0.1.8'
4
+ VERSION = '0.1.8.1'
5
5
  end
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-04-21 00:00:00.000000000 Z
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
- rubyforge_project:
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