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 +4 -4
- data/Rakefile +1 -1
- data/app/views/spree/checkout/payment/_paypal_checkout.html.erb +2 -1
- data/lib/generators/{spree_paypal_checkout → spree_paypal_api_checkout}/install/install_generator.rb +2 -2
- data/lib/{spree_paypal_checkout → spree_paypal_api_checkout}/engine.rb +1 -1
- data/lib/spree_paypal_api_checkout/version.rb +3 -0
- data/lib/spree_paypal_api_checkout.rb +2 -2
- data/script/rails +1 -1
- data/spree_paypal_api_checkout.gemspec +3 -3
- metadata +6 -6
- data/lib/spree_paypal_checkout/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ba9ba4c23728483639e65d88a6b31fa689687345d38256b6eea9c36267b25f
|
4
|
+
data.tar.gz: 4dd41c57024aba002dad9ea93af569635bd2c600d3b2c20c38a63d5ce88b4661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c09da382fc3e9c6fa46e6008a34383da1bc66f78dad8d8107558465b167e7c955a55cc7416bf778f2d0e1279fbf55ed3bd20ee4fc2f91c00a381483b32266764
|
7
|
+
data.tar.gz: d844f01f25bfd669a48378f9f04e7fece3c7c4d189df09a50f5c416e28f2af951a4207ea805303152ec6ccb5923185ff5fee764e86786ad996ea1bc25a3daeba
|
data/Rakefile
CHANGED
@@ -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=<%=
|
3
|
+
<script type="text/javascript" src="https://www.paypal.com/sdk/js?client-id=<%= payment_method.api_key %>¤cy=<%= @order.currency %>"></script>
|
4
|
+
|
4
5
|
<script type="text/javascript">
|
5
6
|
paypal.Buttons({
|
6
7
|
style: {
|
data/lib/generators/{spree_paypal_checkout → spree_paypal_api_checkout}/install/install_generator.rb
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
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=
|
22
|
+
run 'bundle exec rake railties:install:migrations FROM=spree_paypal_api_checkout'
|
23
23
|
end
|
24
24
|
|
25
25
|
def run_migrations
|
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/
|
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.
|
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
|
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/
|
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.
|
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
|
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/
|
379
|
+
- lib/generators/spree_paypal_api_checkout/install/install_generator.rb
|
380
380
|
- lib/spree_paypal_api_checkout.rb
|
381
|
-
- lib/
|
382
|
-
- lib/
|
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.
|
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
|