spree_paypal_api_checkout 0.0.2 → 0.0.5

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: c0a0a94ec0434c0fade5368d7c57d7e76a7c0e55a5dfeac53e100d04f7353e37
4
- data.tar.gz: 0aff3cd67f5b00f83bb977af8dd78c0aa3b61d3f12e27b80c768387d050f443e
3
+ metadata.gz: bae3ca282bbb42703dee161639c0bc575070c8743c5731e269017689985fdb26
4
+ data.tar.gz: 8acd1a06f1b8ef885359d36b724319107d8ffdfc1378b5238b95ff9afa70c915
5
5
  SHA512:
6
- metadata.gz: 84d492dbb25bc042d91e1c1927f6c753a3c68fddbdb3c17fdf22a4ef115a6e2d53adaef53ce669a909c9165627a3fcea207a836f33a0020b1877d0feca27d761
7
- data.tar.gz: 2a2120f2b1eb4ca9e5048f1295c5318897a884ae927997b4758d11576e5f90254e587a5e4ad0b70b95b97f4a304a529c9f5c6b7c1045459c48cc1a73fec06702
6
+ metadata.gz: 27bd28c102d8d41e14e99a44463f2ed50f1f739e58d8e3da932caa325f08f8af71d1f3737eb8b083865f1d513eac605168c3e83d860489b2dc182f66de749b30
7
+ data.tar.gz: 042cdcbf7f71ab1a8e8238d7495d8f947a240a794d21d143e10f925df4adee2e5ac5b5df1ea178ab4f6938a1984fcf858f047c8bf408b3ffeeaced54d65c72b4
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', github: 'spree-contrib/better_spree_paypal_checkout'
7
+ gem 'spree_paypal_checkout', '~> 0.0.5'
12
8
 
13
9
  2. Install the gem using Bundler:
14
10
 
@@ -16,6 +12,7 @@ This is the official Paypal checkout extension for Spree.
16
12
 
17
13
  3. Copy & run migrations
18
14
 
15
+ bundle exec rake railties:install:migrations
19
16
  bundle exec rails g spree_paypal_api_checkout:install
20
17
 
21
18
  4. Restart your server
@@ -26,7 +23,7 @@ This is the official Paypal checkout extension for Spree.
26
23
 
27
24
  #### PayPal
28
25
 
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. Once the account is created, click on the triangle next to its email address, then "Profile". The "API Credentials" tab will provide your API credentials (probably). If this tab is blank, try refreshing the page.
26
+ 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
27
 
31
28
  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
29
 
@@ -38,18 +35,13 @@ In Spree, go to the admin backend, click "Configuration" and then "Payment Metho
38
35
 
39
36
  #### PayPal
40
37
 
41
- Sign in to PayPal, then click "Profile" and then (under "Account Information" on the left), click "API Access". On this page, select "Option 2" and click "View API Signature". The username, password and signature will be displayed on this screen.
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/).
38
+ 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
39
 
45
- #### Spree Setup
40
+ ### Spree Setup
46
41
 
47
42
  Same as sandbox setup, but change "Server" from "sandbox" to "live".
48
43
 
49
44
  ## Configuration
50
45
  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
46
 
52
-
53
47
  **Must** be an absolute path to the image.
54
-
55
- ## Caveats
data/Rakefile CHANGED
@@ -16,6 +16,6 @@ end
16
16
 
17
17
  desc 'Generates a dummy app for testing'
18
18
  task :test_app do
19
- ENV['LIB_NAME'] = 'spree_paypal_express'
19
+ ENV['LIB_NAME'] = 'spree_paypal_checkout'
20
20
  Rake::Task['extension:test_app'].invoke
21
21
  end
@@ -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.api_key %>&currency=<%= @order.currency %>"></script>
3
+ <script type="text/javascript" src="https://www.paypal.com/sdk/js?client-id=<%= payment_method.preferred_api_key %>&currency=<%= @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,3 +1,3 @@
1
1
  module SpreePaypalApiCheckout
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.5'
3
3
  end
data/script/rails CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  ENGINE_ROOT = File.expand_path('../..', __FILE__)
4
- ENGINE_PATH = File.expand_path('../../lib/spree_paypal_express/engine', __FILE__)
4
+ ENGINE_PATH = File.expand_path('../../lib/spree_paypal_api_checkout/engine', __FILE__)
5
5
 
6
6
  require 'rails/all'
7
7
  require 'rails/engine/commands'
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "spree_paypal_api_checkout".freeze
3
- s.version = "0.0.2"
3
+ s.version = "0.0.5"
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]
7
7
  s.authors = ["Spree Commerce".freeze]
8
8
  s.date = "2022-02-22"
9
- s.description = "Adds PayPal Express as a Payment Method to Spree Commerce".freeze
9
+ s.description = "Adds PayPal API Checkout as a Payment Method to Spree Commerce".freeze
10
10
  s.email = "gems@spreecommerce.com".freeze
11
11
  s.files = [".gitignore".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "app/assets/javascripts/spree/backend/spree_paypal_checkout.js".freeze, "app/assets/javascripts/spree/frontend/spree_paypal_checkout.js".freeze, "app/assets/stylesheets/spree/backend/spree_paypal_checkout.css".freeze, "app/assets/stylesheets/spree/frontend/spree_paypal_checkout.css".freeze, "app/controllers/spree/admin/payments_controller_decorator.rb".freeze, "app/controllers/spree/admin/paypal_checkout_payments_controller.rb".freeze, "app/controllers/spree/paypal_checkout_controller.rb".freeze, "app/models/spree/gateway/pay_pal_checkout.rb".freeze, "app/models/spree/paypal_api_checkout.rb".freeze, "app/views/spree/admin/payments/_paypal_complete.html.erb".freeze, "app/views/spree/admin/payments/paypal_refund.html.erb".freeze, "app/views/spree/admin/payments/source_forms/_paypal.html.erb".freeze, "app/views/spree/admin/payments/source_views/_paypal.html.erb".freeze, "app/views/spree/checkout/payment/_paypal_checkout.html.erb".freeze, "config/locales/de.yml".freeze, "config/locales/en.yml".freeze, "config/locales/es.yml".freeze, "config/locales/it.yml".freeze, "config/locales/pl.yml".freeze, "config/locales/pt.yml".freeze, "config/routes.rb".freeze, "db/migrate/20220620042734_create_spree_paypal_api_checkouts.rb".freeze, "lib/generators/spree_paypal_api_checkout/install/install_generator.rb".freeze, "lib/spree_paypal_api_checkout.rb".freeze, "lib/spree_paypal_api_checkout/engine.rb".freeze, "lib/spree_paypal_api_checkout/version.rb".freeze, "script/rails".freeze, "spree_paypal_api_checkout.gemspec".freeze]
12
12
  s.homepage = "http://www.spreecommerce.com".freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_paypal_api_checkout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spree Commerce
@@ -344,7 +344,7 @@ dependencies:
344
344
  - - ">="
345
345
  - !ruby/object:Gem::Version
346
346
  version: '0'
347
- description: Adds PayPal Express as a Payment Method to Spree Commerce
347
+ description: Adds PayPal API Checkout as a Payment Method to Spree Commerce
348
348
  email: gems@spreecommerce.com
349
349
  executables: []
350
350
  extensions: []