lib/opay/configuration.rb in opay-1.2.0 vs lib/opay/configuration.rb in opay-1.2.1
- old
+ new
@@ -19,12 +19,12 @@
config_accessor :paypal_signature
config_accessor :test_mode
config_accessor :process_payments_localy
- config_accessor :success_path
- config_accessor :cancel_path
+ config_accessor :success_url
+ config_accessor :cancel_url
reset_config
end
module ClassMethods
@@ -35,9 +35,12 @@
# Sets configuration back to default
def reset_config
configure do |config|
config.providers = [:payu, :paypal]
+
+ config.success_url = :success_payment_url
+ config.cancel_url = :cancel_payment_url
# payu configuration
config.payu_pos_id = ENV['PAYU_POS_ID']
config.payu_pos_auth_key = ENV['PAYU_POS_AUTH_KEY']
config.payu_key1 = ENV['PAYU_KEY1']