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 +8 -8
- data/lib/rails-paypal-gem/version.rb +1 -1
- data/lib/services/express_checkout.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2U5ZmRjMzU3YmY4NGJlZWE0YzY1OGUxZmVhZGI4ZjIzYzM4OTY1Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTJjYzQ0YWFmNWY4Y2VjM2UxYzkxMTc5MTNkMzUwOWQyYTBjMDlmYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjZhMWQ4NzE3Nzg3MjU3N2MzMDkyZDRmOTU1Njg1NTIzZjk4N2U5ZGQ1MDUw
|
10
|
+
ZDllMjJkYzliZDI2ODlkYzMwNDE2NDEzNzlhOTMyNmZmZjQ3ZWZmZGMwZDBh
|
11
|
+
OWYxNGQwZTIxYzM5ZjMzOGU3NzA1MDY5YzNlOGIyNTE0MWQ3ZjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzM2MDE4N2M0Y2RiMmFmOTYxYWM0ZTQ4MGU2YzU0OTA0ZmI3MGMxMTAzZmFm
|
14
|
+
N2I3NzNjMmNmNDNhMjlhZGQ1YmFlODAwZTU4MjYyYjVmNDVlNGY1N2U2YzZm
|
15
|
+
ODQ4MThiNjMyOTkzODE1MmNhZDE2NTQwMWFhNDZmYzlmZjVkNTk=
|
@@ -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
|