spree_paypal_api_checkout 0.0.3 → 0.0.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 138ebb9bffcb77133a08404472042023464f25bebbc53df20837bb0046935705
|
4
|
+
data.tar.gz: 1305d8ace7290bfef2b259f36a6940d45ac90d2889fd81d24fe9d29195305fbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a185e9e428feb1a585b3de92328dfaef08ae90d1cfc3f58eb57c81efc4a74b85881fea085fe27e7e34307963aa9124ad991b5c01f4874d88b6b1b825021baf
|
7
|
+
data.tar.gz: 29654cd7b99f07536c1fef392211065e18b878fadd2427ffd7691414f67cc1b0f19a2a7e3c11513e01313e1f5906cc846a66d7380e3960be859711f0d0235924
|
data/README.md
CHANGED
@@ -1,14 +1,10 @@
|
|
1
1
|
# Spree PayPal checkout
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/spree-contrib/better_spree_paypal_checkout.svg?branch=master)](https://travis-ci.org/spree-contrib/better_spree_paypal_checkout)
|
4
|
-
|
5
|
-
This is the official Paypal checkout extension for Spree.
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
5
|
1. Add this extension to your Gemfile with this line:
|
10
6
|
|
11
|
-
gem 'spree_paypal_checkout',
|
7
|
+
gem 'spree_paypal_checkout', '~> 0.0.4'
|
12
8
|
|
13
9
|
2. Install the gem using Bundler:
|
14
10
|
|
@@ -16,7 +12,7 @@ This is the official Paypal checkout extension for Spree.
|
|
16
12
|
|
17
13
|
3. Copy & run migrations
|
18
14
|
|
19
|
-
bundle exec
|
15
|
+
bundle exec rake railties:install:migrations
|
20
16
|
|
21
17
|
4. Restart your server
|
22
18
|
|
@@ -26,7 +22,7 @@ This is the official Paypal checkout extension for Spree.
|
|
26
22
|
|
27
23
|
#### PayPal
|
28
24
|
|
29
|
-
Go to [PayPal's Developer Website](https://developer.paypal.com/), sign in with your PayPal account, click "Applications" then "Sandbox Accounts" and create a new "Business" account.
|
25
|
+
Go to [PayPal's Developer Website](https://developer.paypal.com/), sign in with your PayPal account, click "Applications" then "Sandbox Accounts" and create a new "Business" account. There you will get your CLIENT ID and CLIENT SECRET KEY.
|
30
26
|
|
31
27
|
You will also need a "Personal" account to test the transactions on your site. Create this in the same way, finding the account information under "Profile" as well. You may need to set a password in order to be able to log in to PayPal's sandbox for this user.
|
32
28
|
|
@@ -38,18 +34,13 @@ In Spree, go to the admin backend, click "Configuration" and then "Payment Metho
|
|
38
34
|
|
39
35
|
#### PayPal
|
40
36
|
|
41
|
-
|
42
|
-
|
43
|
-
If you are unable to find it, then follow [PayPal's own documentation](https://developer.paypal.com/webapps/developer/docs/classic/api/apiCredentials/).
|
37
|
+
Go to [PayPal's Developer Website](https://developer.paypal.com/), sign in with your PayPal account, click "Applications" then "Sandbox Accounts" and create a new "Business" account. There you will get your CLIENT ID and CLIENT SECRET KEY.
|
44
38
|
|
45
|
-
|
39
|
+
### Spree Setup
|
46
40
|
|
47
41
|
Same as sandbox setup, but change "Server" from "sandbox" to "live".
|
48
42
|
|
49
43
|
## Configuration
|
50
44
|
This Spree extension supports *some* of those. If your favourite is not here, then please submit an issue about it, or better still a patch to add it in.
|
51
45
|
|
52
|
-
|
53
46
|
**Must** be an absolute path to the image.
|
54
|
-
|
55
|
-
## Caveats
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div id="paypal-button-container" class="paypal-button-container"></div>
|
2
2
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
3
|
-
<script type="text/javascript" src="https://www.paypal.com/sdk/js?client-id=<%= payment_method.
|
3
|
+
<script type="text/javascript" src="https://www.paypal.com/sdk/js?client-id=<%= payment_method.preferred_api_key %>¤cy=<%= @order.currency %>"></script>
|
4
4
|
|
5
5
|
<script type="text/javascript">
|
6
6
|
paypal.Buttons({
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
Spree::Core::Engine.add_routes do
|
2
2
|
post '/paypal_checkout', :to => "paypal_checkout#express", :as => :paypal_checkout
|
3
|
-
post '/paypal_checkout/authorize', :to => "paypal_checkout#authorize", :as => :authorize_paypal_checkout
|
4
3
|
post '/paypal_checkout/confirm', :to => "paypal_checkout#confirm", :as => :confirm_paypal_checkout
|
5
4
|
get '/paypal_checkout/cancel', :to => "paypal_checkout#cancel", :as => :cancel_paypal_checkout
|
6
5
|
get '/paypal_checkout/notify', :to => "paypal_checkout#notify", :as => :notify_paypal_checkout
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "spree_paypal_api_checkout".freeze
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.4"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
6
6
|
s.require_paths = ["lib".freeze]
|