From 6779158d2e364e1bbbc5c7ddbbe9250f127be6b8 Mon Sep 17 00:00:00 2001 From: Matiss Gaigals Date: Sat, 2 Jan 2021 17:01:12 +0200 Subject: [PATCH] Update pay_pal_express.rb Fix regarding https://github.com/spree-contrib/better_spree_paypal_express/issues/213 --- app/models/spree/gateway/pay_pal_express.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/models/spree/gateway/pay_pal_express.rb b/app/models/spree/gateway/pay_pal_express.rb index fa47cb0c..7a31ad47 100644 --- a/app/models/spree/gateway/pay_pal_express.rb +++ b/app/models/spree/gateway/pay_pal_express.rb @@ -19,10 +19,12 @@ def provider_class def provider ::PayPal::SDK.configure( - :mode => preferred_server.present? ? preferred_server : "sandbox", - :username => preferred_login, - :password => preferred_password, - :signature => preferred_signature) + mode: preferred_server.present? ? preferred_server : "sandbox", + username: preferred_login, + password: preferred_password, + signature: preferred_signature, + ssl_options: { ca_file: nil } + ) provider_class.new end