spree_paypal_rest 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/app/models/spree/gateway/paypal_express.rb +6 -0
- data/lib/spree_paypal_rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc31617bd0cb935cd65a90d89e4e3c94a0af93dc
|
4
|
+
data.tar.gz: 3f821eefa0ccffd43712d3680471b78b478f1d4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58532d00b843b7aff153092ce94c283946ac38a117d29f826480c02f5b0bb54d44a1ba11f9e1d2e37df7394c566da6a8e87aef5215f450b7d929668bad37cea5
|
7
|
+
data.tar.gz: 50e53d7fc4f6df8e903d7301ed96470c67f785355068986765db0d1590861285fcec90d14696071d2d151444c2f8237be4a435a6654a04229eaa2506bdc8be4c
|
data/README.md
CHANGED
@@ -17,7 +17,14 @@ Behind the scenes, this extension uses [Paypal Ruby SDK](https://github.com/payp
|
|
17
17
|
* Paypal Express Checkout/Payment Experience API integration.
|
18
18
|
* Support for Promotions and Adjustments.
|
19
19
|
* Let Spree handle Orders and Payments flow.
|
20
|
-
|
20
|
+
|
21
|
+
## Fixes
|
22
|
+
* [Paypal not trigger submit coupon code.](https://github.com/spree-contrib/better_spree_paypal_express/issues/119)
|
23
|
+
* [NotImplementedError (You must implement cancel method for this payment method.)](https://github.com/spree-contrib/better_spree_paypal_express/issues/171)
|
24
|
+
* [Customer Reimburse fails](https://github.com/spree-contrib/better_spree_paypal_express/issues/169)
|
25
|
+
* [Undefined method credit](https://github.com/spree-contrib/better_spree_paypal_express/issues/97)
|
26
|
+
* [Error When Trying to Cancel Order in Dev Mode](https://github.com/spree-contrib/better_spree_paypal_express/issues/91)
|
27
|
+
* ["Save and continue" does nothing useful when PayPal method is selected](https://github.com/spree-contrib/better_spree_paypal_express/issues/32)
|
21
28
|
|
22
29
|
## Installation
|
23
30
|
Before installing this extension please follow Spree installation Guide.
|
@@ -75,6 +75,12 @@ module Spree
|
|
75
75
|
refund(spree_payment.amount, spree_payment.source, {currency: spree_payment.currency})
|
76
76
|
end
|
77
77
|
|
78
|
+
def credit(amount, source, options)
|
79
|
+
origin = options[:originator]
|
80
|
+
fixed_amount = Money.new(amount * 0.01).money.to_s
|
81
|
+
refund(fixed_amount, origin.payment.source, {currency: origin.payment.currency, originator: origin})
|
82
|
+
end
|
83
|
+
|
78
84
|
def profile_options
|
79
85
|
{
|
80
86
|
profile_name: preferred_profile_name,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_paypal_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hugomarquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|