solidus_six_saferpay 0.1.4 → 0.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8848c45b0e022027642158af899f3b1c9d577c2e996f9fefece9f18b98d9d23f
|
4
|
+
data.tar.gz: 6d58c5b848c8afa2b29f3ed61e3af5d59d2972fb4092b91e749ddb9e049fa745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 858c40016a86e47f86b804b58b1196ff9ede4207123923d0a4bb4b2f6ea479eca58eac3d1dc7360ddeedeebe4c058f772a7be09f25b2035f7465d3da14db0cb6
|
7
|
+
data.tar.gz: ef2cff8cdb39f534a610358ba3d66f53261ebd48f7c394e1deb06d379b313db8fa9d375d932fbb0d606a2538d4f8dfd1ef7207a1ee287a5db934273cb331e11c
|
@@ -4,6 +4,8 @@ module Spree
|
|
4
4
|
|
5
5
|
before_action :load_order
|
6
6
|
|
7
|
+
after_action :allow_embed, only: [:success, :fail]
|
8
|
+
|
7
9
|
def init
|
8
10
|
payment_method = Spree::PaymentMethod.find(params[:payment_method_id])
|
9
11
|
initialized_payment = initialize_payment(@order, payment_method)
|
@@ -64,6 +66,11 @@ module Spree
|
|
64
66
|
|
65
67
|
private
|
66
68
|
|
69
|
+
def allow_embed
|
70
|
+
# allow response to be embedded in iFrame
|
71
|
+
response.headers.except! 'X-Frame-Options'
|
72
|
+
end
|
73
|
+
|
67
74
|
def initialize_payment(order, payment_method)
|
68
75
|
raise NotImplementedError, "Must be implemented in PaymentPageCheckoutController or TransactionCheckoutController"
|
69
76
|
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.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Kiener
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|