lib/payanyway/gateway.rb in payanyway-2.1.0 vs lib/payanyway/gateway.rb in payanyway-2.2.0
- old
+ new
@@ -48,10 +48,14 @@
Payanyway::Factories::PaymentUrlFactory.build(params, use_signature)
end
+ def widget_url(params, use_signature = true)
+ Payanyway::Factories::WidgetUrlFactory.build(params, use_signature)
+ end
+
class << self
extend Forwardable
def_delegators(:instance, *Payanyway::Gateway.instance_methods(false))
end
@@ -59,6 +63,6 @@
def load_config
YAML.load(File.read(File.join(Rails.root, 'config/payanyway.yml')))[@env]
end
end
-end
\ No newline at end of file
+end