rails-paypal-gem 0.7 → 0.7.1
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 +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGQwODUwMTcwMzEyZTcwYWFkNDU1ZjI2N2MxZjk2Yzc1MmZlMDRmZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDQyNDdjMzBjNTUxMjY5MjM3MjRlMDZhYTMxZmVlZTI2ZmVkYTkyMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODBmMzJlOTA4ZGFlOTFlYzcyMGQwOTM1MTg1Nzk2NDI4ZGUxMTMyY2NjNDM3
|
10
|
+
YTRiOTVkOWU2MWIxZTk2YWU4YWVjNzgzM2RmZjA4ZGM1NmI0ZTYxYjNhMmE5
|
11
|
+
OWZjY2I3MThlNGY3M2EzNzg5NmEyYzE1OWZkMGViZGM5MTRjZDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDRhNTQ4N2RjZDMyODlmNmI0YjQ5OWM5ZjliYzA1OGFhY2ZkZTJmMjQwOTg4
|
14
|
+
NWE3MTAyZDQ4MWU1ZmMxZjY0ZTY1MWNkZjdjMjNiNTYxN2UyMWE0OWI5OTE4
|
15
|
+
YWQxODQxNGI0ZmMyYzI4YzJiMGZiMjFmMWM1NDFhODkxOGY3YTg=
|
@@ -15,9 +15,12 @@ class RailsPaypalGem::ExpressCheckout < RailsPaypalGem
|
|
15
15
|
total += (li[:price].to_f * li[:quantity].to_i)
|
16
16
|
end
|
17
17
|
params["PAYMENTREQUEST_0_AMT"] = total.to_s
|
18
|
+
params["PAYMENTREQUEST_0_CURRENCYCODE"] = currency
|
19
|
+
|
18
20
|
end
|
19
21
|
|
20
22
|
def set(action = 'Sale', currency = 'EUR')
|
23
|
+
self.params["PAYMENTREQUEST_0_CURRENCYCODE"] = currency
|
21
24
|
self.params["PAYMENTREQUEST_0_PAYMENTACTION"] = action
|
22
25
|
self.params["METHOD"] = 'SetExpressCheckout'
|
23
26
|
response = self.class.call(self.params)
|