webtopay 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  module Webtopay
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
4
4
 
@@ -1,18 +1,19 @@
1
1
  module WebToPayHelper
2
2
  def macro_form(params, &block)
3
- fields = {:orderid => "1", :lang => 'LIT', :amount => 0, :currency => 'LTL',
3
+ fields = {:orderid => "1", :lang => 'LIT', :amount => 0, :currency => 'LTL',
4
4
  :accepturl => 'http://google.com', :cancelurl => 'http://yahoo.com', :callbackurl => 'http://yourdomain.com',
5
5
  :projectid => WebToPay.config.project_id,
6
6
  :sign_password => WebToPay.config.sign_password,
7
7
  :test => 0}
8
-
8
+
9
9
  fields.merge!(params)
10
-
10
+
11
11
  request = WebToPay::Api.build_request(fields)
12
-
13
- concat "<form action=\"https://www.mokejimai.lt/pay/\" method=\"post\" style=\"padding:0px;margin:0px\">"
12
+
13
+ concat "<form action=\"https://www.mokejimai.lt/pay/\" method=\"post\" style=\"padding:0px;margin:0px\">".html_safe
14
14
  request.each_pair {|k,v| concat hidden_field_tag(k, v) if !v.nil? }
15
15
  yield if block_given?
16
- concat "</form>"
16
+ concat "</form>".html_safe
17
17
  end
18
18
  end
19
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtopay
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Laurynas Butkus