spree_paypal_api_checkout 0.0.0 → 0.0.3

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: 86103567a8e43ddb81be86c41254d93b1c7b9e52f871d2280af2844ff89876c9
4
- data.tar.gz: e653e47f93021041502c595868372205a34cb1be4d86fe97b2d4da3d1564ecdd
3
+ metadata.gz: d8ba9ba4c23728483639e65d88a6b31fa689687345d38256b6eea9c36267b25f
4
+ data.tar.gz: 4dd41c57024aba002dad9ea93af569635bd2c600d3b2c20c38a63d5ce88b4661
5
5
  SHA512:
6
- metadata.gz: b86af98a3383d055f2ca6aacec4ce1f3686c2ab27449f20516c796131334f22d3d194c372525967640e09ba88bf8d1370a8a28c76967b668fc8b832fca34cdef
7
- data.tar.gz: '0081b05f5b40bd2be3f729710d125d53b6ec42c35ad5f1b6bdaa037c4f168a56757b0f016b2074f30a8799d83da289cc28a738fa65437d0fbb898dcd3544f1ff'
6
+ metadata.gz: c09da382fc3e9c6fa46e6008a34383da1bc66f78dad8d8107558465b167e7c955a55cc7416bf778f2d0e1279fbf55ed3bd20ee4fc2f91c00a381483b32266764
7
+ data.tar.gz: d844f01f25bfd669a48378f9f04e7fece3c7c4d189df09a50f5c416e28f2af951a4207ea805303152ec6ccb5923185ff5fee764e86786ad996ea1bc25a3daeba
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,7 @@
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=<%= CONSTANTS[:BUSINESS_CLIENT_ID] %>&currency=<%= @order.currency %>"></script>
3
+ <script type="text/javascript" src="https://www.paypal.com/sdk/js?client-id=<%= payment_method.api_key %>&currency=<%= @order.currency %>"></script>
4
+
4
5
  <script type="text/javascript">
5
6
  paypal.Buttons({
6
7
  style: {
@@ -1,4 +1,4 @@
1
- module SpreePaypalCheckout
1
+ module SpreePaypalApiCheckout
2
2
  module Generators
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  class_option :auto_run_migrations, type: :boolean, default: false
@@ -19,7 +19,7 @@ module SpreePaypalCheckout
19
19
  end
20
20
 
21
21
  def add_migrations
22
- run 'bundle exec rake railties:install:migrations FROM=spree_paypal_checkout'
22
+ run 'bundle exec rake railties:install:migrations FROM=spree_paypal_api_checkout'
23
23
  end
24
24
 
25
25
  def run_migrations
@@ -1,4 +1,4 @@
1
- module SpreePaypalCheckout
1
+ module SpreePaypalApiCheckout
2
2
  class Engine < Rails::Engine
3
3
  require 'spree/core'
4
4
  isolate_namespace Spree
@@ -0,0 +1,3 @@
1
+ module SpreePaypalApiCheckout
2
+ VERSION = '0.0.3'
3
+ end
@@ -1,5 +1,5 @@
1
1
  require 'spree_core'
2
2
  require 'spree_extension'
3
- require 'spree_paypal_checkout/version'
4
- require 'spree_paypal_checkout/engine'
3
+ require 'spree_paypal_api_checkout/version'
4
+ require 'spree_paypal_api_checkout/engine'
5
5
  require 'sass/rails'
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,14 +1,14 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "spree_paypal_api_checkout".freeze
3
- s.version = "0.0.0"
3
+ s.version = "0.0.3"
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
- 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_checkout/install/install_generator.rb".freeze, "lib/spree_paypal_api_checkout.rb".freeze, "lib/spree_paypal_checkout/engine.rb".freeze, "lib/spree_paypal_checkout/version.rb".freeze, "script/rails".freeze, "spree_paypal_api_checkout.gemspec".freeze]
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
13
13
  s.required_ruby_version = Gem::Requirement.new(">= 2.2.2".freeze)
14
14
  s.requirements = ["none".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.0
4
+ version: 0.0.3
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: []
@@ -376,10 +376,10 @@ files:
376
376
  - config/locales/pt.yml
377
377
  - config/routes.rb
378
378
  - db/migrate/20220620042734_create_spree_paypal_api_checkouts.rb
379
- - lib/generators/spree_paypal_checkout/install/install_generator.rb
379
+ - lib/generators/spree_paypal_api_checkout/install/install_generator.rb
380
380
  - lib/spree_paypal_api_checkout.rb
381
- - lib/spree_paypal_checkout/engine.rb
382
- - lib/spree_paypal_checkout/version.rb
381
+ - lib/spree_paypal_api_checkout/engine.rb
382
+ - lib/spree_paypal_api_checkout/version.rb
383
383
  - script/rails
384
384
  - spree_paypal_api_checkout.gemspec
385
385
  homepage: http://www.spreecommerce.com
@@ -401,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
401
401
  version: '0'
402
402
  requirements:
403
403
  - none
404
- rubygems_version: 3.0.3
404
+ rubygems_version: 3.2.3
405
405
  signing_key:
406
406
  specification_version: 4
407
407
  summary: Adds PayPal API Checkout as a Payment Method to Spree Commerce
@@ -1,3 +0,0 @@
1
- module SpreePayPalCheckout
2
- VERSION = '1.0.0'
3
- end