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: 0e614d70995bc52244e78d8ca3a507ae6ce2c7d1586fbf700a53a8dae21ec4ed
4
- data.tar.gz: 7773910d3365a9fbdb4a8417665c4644108d6e14092407c37fa969fafe81ac67
3
+ metadata.gz: 8848c45b0e022027642158af899f3b1c9d577c2e996f9fefece9f18b98d9d23f
4
+ data.tar.gz: 6d58c5b848c8afa2b29f3ed61e3af5d59d2972fb4092b91e749ddb9e049fa745
5
5
  SHA512:
6
- metadata.gz: a69288a7dab1de94b63ef5cdae00116324b51e7f7268e7ba56fa3501d330806e650488e6316659e18772f863b6e8659bd5f5de67503370f0f554fd8cbe2faf77
7
- data.tar.gz: be3f1b4e298fb03f64be5b88474fa9ce263b86cdcb09533a053b41c1d4d9483dcdcfe35a0e80dc421bbc0326fbdcbc0b7c242914015371cae07c0f876d8a6e81
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
@@ -1,3 +1,3 @@
1
1
  module SolidusSixSaferpay
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  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
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-20 00:00:00.000000000 Z
11
+ date: 2019-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails