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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e8281f2a10a087c603d570fae84b787b5cf5fd7
|
4
|
+
data.tar.gz: 944a8bc4743feaf40023ab68873464f7efb72141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 ->
|
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 =
|
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:
|
25
|
-
cancel_url:
|
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:{
|