opay 1.2.7 → 1.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2cef459ee8b9dd34d74244b67c15168c91b165e
4
- data.tar.gz: 56491b2fd271c9ba2e5e955a2206bc26ac1f118c
3
+ metadata.gz: 336e0c474cb6b68881cb017e4d4fde5e8c9c818e
4
+ data.tar.gz: dd922fdf51f4680ef50c57b25b3bea7f7b307f54
5
5
  SHA512:
6
- metadata.gz: ed2920a5f3425d8a19b5de0f037a455a0138429713da92a6e187dcd8c59f3da08c43d17f899383a2e4ba11c19d4b9ad1e96dad337496844d73774e432645becb
7
- data.tar.gz: 5c003525e47be445a26c63c1a924e2042aba0ea0f3d3bc12a0f70c043065dbab68619dcd18f5cec0eccfc8c84e67963a39fa62d7027fd5f4a9b32c4f256ffcc9
6
+ metadata.gz: c5ae2d0c83272bd6de36e6692c25ca475471761e7d576abbccb867c02d9ba7bceaada0d92a19e9d4243ab71970e41324a4389832690f40fa491f018dbed86b82
7
+ data.tar.gz: f4801991a29a9ea3af4132ffed4650e24758ae9983a2a002b3fe717c3bd8d90244097cd0acfed7bd144142616547f428b6fcb2a12bb8681ceca6a4c10421aab9
@@ -16,9 +16,9 @@ module Opay
16
16
 
17
17
  def confirm
18
18
  if Providers::Paypal.process(params[:token], params[:PayerID], request.remote_ip)
19
- redirect_to main_app.root_path, notice: I18n.t('opay.payment.success')
19
+ redirect_to main_app.send(Opay.config.success_url)
20
20
  else
21
- redirect_to main_app.root_path, alert: I18n.t('opay.payment.error')
21
+ redirect_to main_app.send(Opay.config.cancel_url)
22
22
  end
23
23
  end
24
24
  end
data/lib/opay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opay
2
- VERSION = '1.2.7'
2
+ VERSION = '1.2.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mariusz Ołownia