spree_paypal 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0c44aa6b48b0b4ef9f937916498f5890a2221eb1bb7e9f69382092993b033e4b
4
+ data.tar.gz: b64a324cdf696202c0b9782a7ce23a2c6a2b4fea683f14a74a858e7b825c887a
5
+ SHA512:
6
+ metadata.gz: 94f1a022234a00dc62007faf7aa2ebc95eb0765f1daa7499c4619d60f8fa6d401a8d43cc7d1cf5b77f5eb7949d9c15ea9c25bf2162b3060c5fba431f3cb005ce
7
+ data.tar.gz: 40339fa11cd431815139a8c0abca74ee1d0cd9e919cbbf1f180cca32403407c9600184937a76bf6390378a5387e8f8ba68ce8dfdea500c1f2b5cbcbab3fe4f64
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-09-05
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ksbek112@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 ksbek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # SpreePaypal
2
+
3
+ SpreePaypal is a gem that integrates PayPal's REST API with the Spree eCommerce platform. It creates a new PayPal payment method, supports the PayPal JavaScript SDK for frontend payment processing, and allows you to configure sandbox or live modes for testing and production.
4
+
5
+
6
+ ## Installation
7
+
8
+ 1. Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'spree_paypal', github: 'vitkx/spree_paypal', branch: 'master'
12
+ ```
13
+
14
+ 2. Install the gem by running:
15
+
16
+ ```bash
17
+ bundle install
18
+ ```
19
+
20
+ 3. Copy & run migrations
21
+
22
+ ```bash
23
+ bundle exec rails g spree_paypal:install
24
+ ```
25
+
26
+ 4. Restart your server
27
+
28
+
29
+ ## Usage
30
+
31
+ After installation, configure PayPal by adding your `client_id`, `client_secret`, and sandbox settings in the Spree admin panel under **Payment Methods**.
32
+
33
+
34
+ ## Contributing
35
+
36
+ Bug reports and pull requests are welcome on GitHub at https://github.com/vitkx/spree_paypal.
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,63 @@
1
+ module Spree
2
+ class PaypalController < Spree::StoreController
3
+ protect_from_forgery with: :null_session
4
+
5
+ def create_order
6
+ order = current_order
7
+ payment_method = Spree::PaymentMethod.find(params[:payment_method_id])
8
+
9
+ service = SpreePaypal::PaypalService.new(payment_method)
10
+ response = service.create_order(order)
11
+
12
+ if response['id']
13
+ render json: { orderID: response['id'] }, status: :ok
14
+ else
15
+ render json: { error: response['message'] }, status: :unprocessable_entity
16
+ end
17
+ end
18
+
19
+ def capture_order
20
+ order = current_order
21
+ payment_method = Spree::PaymentMethod.find(params[:payment_method_id])
22
+ service = SpreePaypal::PaypalService.new(payment_method)
23
+ response = service.capture_order(params[:orderID])
24
+
25
+ if response['status'] == 'COMPLETED'
26
+ process_spree_payment(order, payment_method, response)
27
+ render json: { status: 'success', details: response }, status: :ok
28
+ else
29
+ render json: { error: 'Capture failed' }, status: :unprocessable_entity
30
+ end
31
+ end
32
+
33
+ private
34
+
35
+ def process_spree_payment(order, payment_method, paypal_response)
36
+ payer_info = paypal_response.dig('payer', 'name') || {}
37
+
38
+ paypal_source = Spree::Paypal.create!(
39
+ payer_id: paypal_response['payer']['payer_id'],
40
+ first_name: payer_info['given_name'],
41
+ last_name: payer_info['surname'],
42
+ email: paypal_response['payer']['email_address'],
43
+ payment_method_id: payment_method.id,
44
+ transaction_id: paypal_response['id']
45
+ )
46
+
47
+ payment = order.payments.create!(
48
+ payment_method: payment_method,
49
+ amount: order.total,
50
+ state: 'completed',
51
+ response_code: paypal_response['id'],
52
+ source: paypal_source, # You could create a PayPal-specific payment source if necessary
53
+ avs_response: paypal_response['payer']['payer_id']
54
+ )
55
+
56
+ # Only transition the order if it's not already completed
57
+ if order.state != 'complete'
58
+ order.next! if order.state == 'payment'
59
+ end
60
+ payment.complete! unless payment.completed?
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,39 @@
1
+ module Spree
2
+ class PaymentMethod::Paypal < PaymentMethod
3
+ preference :client_id, :string
4
+ preference :client_secret, :string
5
+ preference :sandbox, :boolean, default: true # Default to sandbox mode
6
+
7
+ def payment_source_class
8
+ Spree::Paypal
9
+ end
10
+
11
+ def actions
12
+ %w{capture void}
13
+ end
14
+
15
+ def auto_capture?
16
+ true
17
+ end
18
+
19
+ def supports?(source)
20
+ source.payment_method.is_a?(Spree::PaymentMethod::Paypal)
21
+ end
22
+
23
+ def provider_class
24
+ ::PaypalService
25
+ end
26
+
27
+ def client_id
28
+ preferred_client_id
29
+ end
30
+
31
+ def client_secret
32
+ preferred_client_secret
33
+ end
34
+
35
+ def sandbox?
36
+ preferred_sandbox
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,7 @@
1
+ module Spree
2
+ class Paypal < ApplicationRecord
3
+ belongs_to :payment_method, class_name: 'Spree::PaymentMethod'
4
+
5
+ validates :payer_id, :first_name, :last_name, :email, presence: true
6
+ end
7
+ end
@@ -0,0 +1,25 @@
1
+ <fieldset data-hook="paypal">
2
+ <legend>Paypal</legend>
3
+ <table class="table table-condensed table-bordered">
4
+ <tr>
5
+ <th width="20%"><%= Spree.t(:transaction_id) %>:</th>
6
+ <td><%= payment.source.transaction_id %></td>
7
+ </tr>
8
+ <tr>
9
+ <th width="20%"><%= Spree.t(:email_address) %>:</th>
10
+ <td><%= payment.source.email %></td>
11
+ </tr>
12
+ <tr>
13
+ <th width="20%"><%= Spree.t(:first_name) %>:</th>
14
+ <td><%= payment.source.first_name %></td>
15
+ </tr>
16
+ <tr>
17
+ <th width="20%"><%= Spree.t(:last_name) %>:</th>
18
+ <td><%= payment.source.last_name %></td>
19
+ </tr>
20
+ <tr>
21
+ <th><%= Spree.t(:state) %>:</th>
22
+ <td><%= payment.state %></td>
23
+ </tr>
24
+ </table>
25
+ </fieldset>
@@ -0,0 +1,56 @@
1
+ <script src="https://www.paypal.com/sdk/js?client-id=<%= payment_method.preferred_client_id %>"></script>
2
+
3
+ <div id="paypal-button-container"></div>
4
+
5
+ <script>
6
+ paypal.Buttons({
7
+ createOrder: async function(data, actions) {
8
+ try {
9
+ const response = await fetch('/paypal/create_order', {
10
+ method: 'POST',
11
+ headers: {
12
+ 'Content-Type': 'application/json',
13
+ 'X-CSRF-Token': '<%= form_authenticity_token %>'
14
+ },
15
+ body: JSON.stringify({
16
+ payment_method_id: '<%= payment_method.id %>'
17
+ })
18
+ });
19
+
20
+ if (!response.ok) {
21
+ throw new Error(`Server error: ${response.statusText}`);
22
+ }
23
+
24
+ const orderData = await response.json();
25
+
26
+ if (!orderData.orderID) {
27
+ throw new Error('Order ID not found in response');
28
+ }
29
+
30
+ return orderData.orderID;
31
+
32
+ } catch (error) {
33
+ console.error('Error creating PayPal order:', error);
34
+ alert('There was an issue creating the PayPal order. Please try again later.');
35
+ return null;
36
+ }
37
+ },
38
+ onApprove: function(data, actions) {
39
+ return fetch('/paypal/capture_order', {
40
+ method: 'post',
41
+ headers: {
42
+ 'Content-Type': 'application/json',
43
+ 'X-CSRF-Token': '<%= form_authenticity_token %>'
44
+ },
45
+ body: JSON.stringify({
46
+ orderID: data.orderID,
47
+ payment_method_id: '<%= payment_method.id %>'
48
+ })
49
+ }).then(function(res) {
50
+ return res.json();
51
+ }).then(function(details) {
52
+ window.location.href = '<%= spree.order_path(@order) %>';
53
+ });
54
+ }
55
+ }).render('#paypal-button-container');
56
+ </script>
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ Spree::Core::Engine.routes.draw do
2
+ post '/paypal/create_order', to: 'paypal#create_order'
3
+ post '/paypal/capture_order', to: 'paypal#capture_order'
4
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This migration comes from spree_paypal_express (originally 20130723042610)
4
+ class CreateSpreePaypal < SpreeExtension::Migration[4.2]
5
+ def change
6
+ unless table_exists?(:spree_paypals)
7
+ create_table :spree_paypals do |t|
8
+ t.string :email
9
+ t.string :first_name
10
+ t.string :last_name
11
+ t.string :payer_id
12
+ t.string :transaction_id
13
+ t.bigint :payment_method_id
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,20 @@
1
+ module SpreePaypal
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ class_option :auto_run_migrations, type: :boolean, default: false
5
+
6
+ def add_migrations
7
+ run 'bundle exec rake railties:install:migrations FROM=spree_paypal'
8
+ end
9
+
10
+ def run_migrations
11
+ run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]'))
12
+ if run_migrations
13
+ run 'bundle exec rake db:migrate'
14
+ else
15
+ puts 'Skipping rake db:migrate, don\'t forget to run it!'
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,13 @@
1
+ module SpreePaypal
2
+ class Engine < Rails::Engine
3
+ require 'spree/core'
4
+ isolate_namespace Spree
5
+ engine_name 'spree_paypal'
6
+
7
+ config.after_initialize do |app|
8
+ app.config.spree.payment_methods += [
9
+ Spree::PaymentMethod::Paypal,
10
+ ]
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,96 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+ require 'json'
4
+ require 'base64'
5
+
6
+ module SpreePaypal
7
+ class PaypalService
8
+ SANDBOX_API_URL = "https://api.sandbox.paypal.com"
9
+ LIVE_API_URL = "https://api.paypal.com"
10
+
11
+ def initialize(payment_method)
12
+ @client_id = payment_method.preferred_client_id
13
+ @client_secret = payment_method.preferred_client_secret
14
+ @api_base_url = payment_method.sandbox? ? SANDBOX_API_URL : LIVE_API_URL
15
+ end
16
+
17
+ def create_order(order)
18
+ auth_token = authenticate
19
+ purchase_units = build_purchase_units(order)
20
+ uri = URI.parse("#{@api_base_url}/v2/checkout/orders")
21
+ request = Net::HTTP::Post.new(uri)
22
+ request["Authorization"] = "Bearer #{auth_token}"
23
+ request["Content-Type"] = "application/json"
24
+ request.body = {
25
+ intent: 'CAPTURE',
26
+ purchase_units: purchase_units
27
+ }.to_json
28
+
29
+ response = send_request(uri, request)
30
+ JSON.parse(response.body)
31
+ end
32
+
33
+ def capture_order(order_id)
34
+ auth_token = authenticate
35
+
36
+ uri = URI.parse("#{@api_base_url}/v2/checkout/orders/#{order_id}/capture")
37
+ request = Net::HTTP::Post.new(uri)
38
+ request["Authorization"] = "Bearer #{auth_token}"
39
+ request["Content-Type"] = "application/json"
40
+
41
+ response = send_request(uri, request)
42
+ JSON.parse(response.body)
43
+ end
44
+
45
+ private
46
+
47
+ def authenticate
48
+ uri = URI.parse("#{@api_base_url}/v1/oauth2/token")
49
+ request = Net::HTTP::Post.new(uri)
50
+ request["Authorization"] = "Basic #{Base64.strict_encode64("#{@client_id}:#{@client_secret}")}"
51
+ request["Content-Type"] = "application/x-www-form-urlencoded"
52
+ request.body = URI.encode_www_form(grant_type: 'client_credentials')
53
+
54
+ response = send_request(uri, request)
55
+ JSON.parse(response.body)['access_token']
56
+ end
57
+
58
+ def build_purchase_units(order)
59
+ items = order.line_items.map do |line_item|
60
+ {
61
+ name: line_item.product.name,
62
+ quantity: line_item.quantity.to_s,
63
+ unit_amount: {
64
+ currency_code: order.currency || 'USD',
65
+ value: line_item.price.to_s
66
+ }
67
+ }
68
+ end
69
+
70
+ [{
71
+ reference_id: order.id,
72
+ amount: {
73
+ currency_code: order.currency || 'USD',
74
+ value: order.total.to_s,
75
+ breakdown: {
76
+ item_total: {
77
+ currency_code: order.currency || 'USD',
78
+ value: order.item_total.to_s
79
+ },
80
+ shipping: {
81
+ currency_code: order.currency || 'USD',
82
+ value: order.shipment_total.to_s
83
+ }
84
+ }
85
+ },
86
+ items: items
87
+ }]
88
+ end
89
+
90
+ def send_request(uri, request)
91
+ http = Net::HTTP.new(uri.host, uri.port)
92
+ http.use_ssl = (uri.scheme == 'https')
93
+ http.request(request)
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SpreePaypal
4
+ VERSION = "1.0.0"
5
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spree_extension'
4
+ require 'spree_paypal/version'
5
+ require 'spree_paypal/engine'
6
+ require 'spree_paypal/services/paypal_service'
@@ -0,0 +1,4 @@
1
+ module SpreePaypal
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/spree_paypal/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "spree_paypal"
7
+ spec.version = SpreePaypal::VERSION
8
+ spec.authors = ["vitkx"]
9
+ spec.email = ["vitoxxx1206@gmail.com"]
10
+ spec.homepage = "https://github.com/vitkx/spree_paypal"
11
+
12
+ spec.summary = "Paypal integration for spree"
13
+ spec.description = "Provides Paypal payment integration for spree"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.add_dependency "spree", "~> 4.9"
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(__dir__) do
22
+ `git ls-files -z`.split("\x0").reject do |f|
23
+ (File.expand_path(f) == __FILE__) ||
24
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
25
+ end
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+ # Uncomment to register a new dependency of your gem
31
+ # spec.add_dependency "example-gem", "~> 1.0"
32
+
33
+ # For more information and examples about making a new gem, check out our
34
+ # guide at: https://bundler.io/guides/creating_gem.html
35
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_paypal
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - vitkx
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-09-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: spree
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.9'
27
+ description: Provides Paypal payment integration for spree
28
+ email:
29
+ - vitoxxx1206@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".rspec"
35
+ - ".rubocop.yml"
36
+ - CHANGELOG.md
37
+ - CODE_OF_CONDUCT.md
38
+ - LICENSE.txt
39
+ - README.md
40
+ - Rakefile
41
+ - app/controllers/spree/paypal_controller.rb
42
+ - app/models/spree/payment_method/paypal.rb
43
+ - app/models/spree/paypal.rb
44
+ - app/views/spree/admin/payments/source_views/_paypal.html.erb
45
+ - app/views/spree/checkout/payment/_paypal.html.erb
46
+ - config/routes.rb
47
+ - db/migrate/20240905052951_create_spree_paypal.rb
48
+ - lib/generators/spree_paypal/install/install_generator.rb
49
+ - lib/spree_paypal.rb
50
+ - lib/spree_paypal/engine.rb
51
+ - lib/spree_paypal/services/paypal_service.rb
52
+ - lib/spree_paypal/version.rb
53
+ - sig/spree_paypal.rbs
54
+ - spree_paypal.gemspec
55
+ homepage: https://github.com/vitkx/spree_paypal
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 2.6.0
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubygems_version: 3.5.3
75
+ signing_key:
76
+ specification_version: 4
77
+ summary: Paypal integration for spree
78
+ test_files: []