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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e8281f2a10a087c603d570fae84b787b5cf5fd7
4
- data.tar.gz: 944a8bc4743feaf40023ab68873464f7efb72141
3
+ metadata.gz: bc31617bd0cb935cd65a90d89e4e3c94a0af93dc
4
+ data.tar.gz: 3f821eefa0ccffd43712d3680471b78b478f1d4d
5
5
  SHA512:
6
- metadata.gz: 7482cbba61fabe17a2f11ffc79d455718fc3580cbc8422929ada7cf2f6ce53d10f00d0d3672005f49a7b6c3870f9ae223523b4ea12dd0367800deafc48051e81
7
- data.tar.gz: 9ad545b9a720f8d63255fb9d26786b4441e7963b552143060c1b87bd5f9edab34a1273cce633199cfb71abb5e9c7c7959aa6e54f7b724ad34e3327ee7088d282
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
- * Fixes promotion code not detected when enter key is pressed in payment form. https://github.com/spree-contrib/better_spree_paypal_express/issues/119
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,
@@ -1,3 +1,3 @@
1
1
  module SpreePaypalRest
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-22 00:00:00.000000000 Z
11
+ date: 2016-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails