lib/opay/helpers/form_helper.rb in opay-1.2.8 vs lib/opay/helpers/form_helper.rb in opay-1.3.0

- old
+ new

@@ -10,10 +10,12 @@ raise ArgumentError, 'Empty payment provider' if @payment_provider.blank? || Opay.config.providers.include?(@payment_provider) == false case @payment_provider when :payu return payu_form_for(record, options, &block) + when :transferuj + return transferuj_form_for(record, options, &block) when :paypal return paypal_form_for(record, options, &block) end end @@ -22,9 +24,11 @@ raise ArgumentError, 'Empty payment provider' if @options[:provider].blank? || Opay.config.providers.include?(@options[:provider]) == false case @options[:provider] when :payu payu_payment_info(options) + when :transferuj + transferuj_payment_info(options) when :paypal paypal_payment_info(options) end end