spree_paypal_rest 1.0.0 → 1.0.1

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: 27c526b59dbe7e1615d629527778f61edfd4209b
4
- data.tar.gz: 03e3fa2fe2797fce9e5a3d5ede579539b5e73d83
3
+ metadata.gz: 4e8281f2a10a087c603d570fae84b787b5cf5fd7
4
+ data.tar.gz: 944a8bc4743feaf40023ab68873464f7efb72141
5
5
  SHA512:
6
- metadata.gz: 3eb54bd0178073a50b539c4f13a103d7550ed947731fde72535d4e3922ddd24ef84a3a72aee397a105fb2350dc1bd5c2e36c85512586a4e908d39e2af87d9b0a
7
- data.tar.gz: f885102dd498bca45ac6699b6fb79fc41d5862c48bf011566c9b1d8f3ae85d98c62c5b7903b7cc508cecfa72752bbb0b41231c6ef82876436fd7be593d3ad608
6
+ metadata.gz: 7482cbba61fabe17a2f11ffc79d455718fc3580cbc8422929ada7cf2f6ce53d10f00d0d3672005f49a7b6c3870f9ae223523b4ea12dd0367800deafc48051e81
7
+ data.tar.gz: 9ad545b9a720f8d63255fb9d26786b4441e7963b552143060c1b87bd5f9edab34a1273cce633199cfb71abb5e9c7c7959aa6e54f7b724ad34e3327ee7088d282
data/README.md CHANGED
@@ -23,7 +23,7 @@ Behind the scenes, this extension uses [Paypal Ruby SDK](https://github.com/payp
23
23
  Before installing this extension please follow Spree installation Guide.
24
24
 
25
25
  cd my_project
26
- echo "gem 'spree_paypal_rest', '1.0.0'" >> Gemfile
26
+ echo "gem 'spree_paypal_rest', '1.0.1'" >> Gemfile
27
27
  bundle
28
28
  rails g spree_paypal_rest:install
29
29
  rails server
@@ -40,7 +40,9 @@ You will also need a "Personal" account to test the transactions on your site. C
40
40
 
41
41
  ### Spree Backend
42
42
 
43
- In Spree, go to the admin backend, click "Configuration -> Payment Methods" and create a new payment method. Select "Spree::Gateway::PaypalExpress" as the provider, and click "Create".
43
+ In Spree, go to the admin backend, click "Configuration -> General Settings" and add the Site URL.
44
+
45
+ Then go to the admin backend, click "Configuration -> Payment Methods" and create a new payment method. Select "Spree::Gateway::PaypalExpress" as the provider, and click "Create".
44
46
 
45
47
  Then enter the following information for your paypal **Business** Account:
46
48
  * Brand Name
@@ -66,7 +68,6 @@ Then enter the following information for your paypal **Business** Account:
66
68
  * Internationalization.
67
69
  * More testing.
68
70
  * Follow Spree versioning style.
69
- * Add store return and cancel url paths for PaypalPayment#payment_payload
70
71
 
71
72
 
72
73
  ## Contributing
@@ -58,7 +58,7 @@ module Spree
58
58
  }
59
59
  })
60
60
  if paypal_refund.success?
61
- refund_type = payment.amount == amount.to_f ? 'Full' : 'Partial'
61
+ refund_type = paypal_refund.amount == amount.to_f ? 'Full' : 'Partial'
62
62
  source.update(
63
63
  refund_id: paypal_refund.id,
64
64
  refund_type: refund_type,
@@ -21,8 +21,8 @@ module Spree
21
21
  }
22
22
  },
23
23
  redirect_urls: {
24
- return_url: 'http://localhost:3000' + Core::Engine.routes.url_helpers.paypal_express_return_order_checkout_path(order.id),
25
- cancel_url: 'http://localhost:3000' + Core::Engine.routes.url_helpers.paypal_express_cancel_order_checkout_path(order.id),
24
+ return_url: Store.current.url + Core::Engine.routes.url_helpers.paypal_express_return_order_checkout_path(order.id),
25
+ cancel_url: Store.current.url + Core::Engine.routes.url_helpers.paypal_express_cancel_order_checkout_path(order.id),
26
26
  },
27
27
  transactions:[{
28
28
  item_list:{
@@ -1,3 +1,3 @@
1
1
  module SpreePaypalRest
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_paypal_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - hugomarquez