rails-paypal-gem 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGQwODUwMTcwMzEyZTcwYWFkNDU1ZjI2N2MxZjk2Yzc1MmZlMDRmZA==
4
+ M2U5ZmRjMzU3YmY4NGJlZWE0YzY1OGUxZmVhZGI4ZjIzYzM4OTY1Yw==
5
5
  data.tar.gz: !binary |-
6
- MDQyNDdjMzBjNTUxMjY5MjM3MjRlMDZhYTMxZmVlZTI2ZmVkYTkyMQ==
6
+ YTJjYzQ0YWFmNWY4Y2VjM2UxYzkxMTc5MTNkMzUwOWQyYTBjMDlmYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODBmMzJlOTA4ZGFlOTFlYzcyMGQwOTM1MTg1Nzk2NDI4ZGUxMTMyY2NjNDM3
10
- YTRiOTVkOWU2MWIxZTk2YWU4YWVjNzgzM2RmZjA4ZGM1NmI0ZTYxYjNhMmE5
11
- OWZjY2I3MThlNGY3M2EzNzg5NmEyYzE1OWZkMGViZGM5MTRjZDk=
9
+ ZjZhMWQ4NzE3Nzg3MjU3N2MzMDkyZDRmOTU1Njg1NTIzZjk4N2U5ZGQ1MDUw
10
+ ZDllMjJkYzliZDI2ODlkYzMwNDE2NDEzNzlhOTMyNmZmZjQ3ZWZmZGMwZDBh
11
+ OWYxNGQwZTIxYzM5ZjMzOGU3NzA1MDY5YzNlOGIyNTE0MWQ3ZjA=
12
12
  data.tar.gz: !binary |-
13
- NDRhNTQ4N2RjZDMyODlmNmI0YjQ5OWM5ZjliYzA1OGFhY2ZkZTJmMjQwOTg4
14
- NWE3MTAyZDQ4MWU1ZmMxZjY0ZTY1MWNkZjdjMjNiNTYxN2UyMWE0OWI5OTE4
15
- YWQxODQxNGI0ZmMyYzI4YzJiMGZiMjFmMWM1NDFhODkxOGY3YTg=
13
+ MzM2MDE4N2M0Y2RiMmFmOTYxYWM0ZTQ4MGU2YzU0OTA0ZmI3MGMxMTAzZmFm
14
+ N2I3NzNjMmNmNDNhMjlhZGQ1YmFlODAwZTU4MjYyYjVmNDVlNGY1N2U2YzZm
15
+ ODQ4MThiNjMyOTkzODE1MmNhZDE2NTQwMWFhNDZmYzlmZjVkNTk=
@@ -1,3 +1,3 @@
1
1
  module RailsPaypalGem
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
@@ -3,7 +3,7 @@ class RailsPaypalGem::ExpressCheckout < RailsPaypalGem
3
3
  attr_accessor :token
4
4
  attr_accessor :line_items
5
5
 
6
- def initialize(line_items)
6
+ def initialize(line_items, currency = 'EUR')
7
7
  self.line_items = line_items
8
8
  self.params = {}
9
9
  total = 0.0
@@ -51,11 +51,11 @@ class RailsPaypalGem::ExpressCheckout < RailsPaypalGem
51
51
 
52
52
  def self.do(token, payer_id, amount, currency="EUR")
53
53
  ret = call({
54
- "TOKEN"=>token,
55
- "PAYERID"=>payer_id,
56
- "AMT" =>amount,
57
- "PAYMENTACTION"=>'Sale',
58
- "METHOD"=>"DoExpressCheckoutPayment" })
54
+ "TOKEN" => token,
55
+ "PAYERID" => payer_id,
56
+ "AMT" => amount,
57
+ "PAYMENTACTION" => 'Sale',
58
+ "METHOD" => "DoExpressCheckoutPayment"})
59
59
  if ret["PAYMENTSTATUS"] == 'Completed'
60
60
  ret["TRANSACTIONID"]
61
61
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-paypal-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Jezek