No space after redirect_to arguments, add bracket for separate args
This commit is contained in:
parent
526cf0a492
commit
04de23853f
|
@ -20,7 +20,7 @@ module Spree
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
redirect_to (@gateway.redirect_url_for response.token, :review => payment_method.preferred_review)
|
redirect_to(@gateway.redirect_url_for(response.token, :review => payment_method.preferred_review))
|
||||||
rescue ActiveMerchant::ConnectionError => e
|
rescue ActiveMerchant::ConnectionError => e
|
||||||
gateway_error I18n.t(:unable_to_connect_to_gateway)
|
gateway_error I18n.t(:unable_to_connect_to_gateway)
|
||||||
redirect_to :back
|
redirect_to :back
|
||||||
|
@ -44,7 +44,7 @@ module Spree
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
redirect_to (@gateway.redirect_url_for @ppx_response.token, :review => payment_method.preferred_review)
|
redirect_to(@gateway.redirect_url_for(@ppx_response.token, :review => payment_method.preferred_review))
|
||||||
rescue ActiveMerchant::ConnectionError => e
|
rescue ActiveMerchant::ConnectionError => e
|
||||||
gateway_error I18n.t(:unable_to_connect_to_gateway)
|
gateway_error I18n.t(:unable_to_connect_to_gateway)
|
||||||
redirect_to :back
|
redirect_to :back
|
||||||
|
|
Loading…
Reference in New Issue