solidus_paypal_commerce_platform 0.3.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +25 -2
- data/.rubocop.yml +6 -5
- data/CHANGELOG.md +180 -122
- data/Gemfile +16 -3
- data/README.md +27 -2
- data/app/assets/javascripts/spree/frontend/solidus_paypal_commerce_platform/button_actions.js +3 -1
- data/app/assets/javascripts/spree/frontend/solidus_paypal_commerce_platform/buttons.js +14 -0
- data/app/controllers/solidus_paypal_commerce_platform/orders_controller.rb +1 -1
- data/app/controllers/solidus_paypal_commerce_platform/payments_controller.rb +4 -2
- data/app/helpers/solidus_paypal_commerce_platform/button_options_helper.rb +4 -0
- data/app/models/solidus_paypal_commerce_platform/gateway.rb +20 -3
- data/app/models/solidus_paypal_commerce_platform/payment_method.rb +21 -1
- data/app/models/solidus_paypal_commerce_platform/payment_source.rb +12 -1
- data/app/models/solidus_paypal_commerce_platform/paypal_order.rb +6 -21
- data/app/models/solidus_paypal_commerce_platform/wizard.rb +1 -1
- data/bin/rails-engine +1 -1
- data/config/locales/en.yml +34 -1
- data/db/migrate/20211220133406_add_paypal_funding_source_to_paypal_commerce_platform_sources.rb +5 -0
- data/lib/paypal/access_token.rb +22 -0
- data/lib/paypal/lib.rb +19 -0
- data/lib/paypal/paypal_checkout_sdk/orders/orders_authorize_request.rb +44 -0
- data/lib/paypal/paypal_checkout_sdk/orders/orders_capture_request.rb +42 -0
- data/lib/paypal/paypal_checkout_sdk/orders/orders_create_request.rb +36 -0
- data/lib/paypal/paypal_checkout_sdk/orders/orders_get_request.rb +26 -0
- data/lib/paypal/paypal_checkout_sdk/orders/orders_patch_request.rb +77 -0
- data/lib/paypal/paypal_checkout_sdk/orders/orders_validate_request.rb +34 -0
- data/lib/paypal/paypal_checkout_sdk/payments/authorizations_capture_request.rb +38 -0
- data/lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb +26 -0
- data/lib/paypal/paypal_checkout_sdk/payments/authorizations_reauthorize_request.rb +45 -0
- data/lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb +27 -0
- data/lib/paypal/paypal_checkout_sdk/payments/captures_get_request.rb +26 -0
- data/lib/paypal/paypal_checkout_sdk/payments/captures_refund_request.rb +40 -0
- data/lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb +26 -0
- data/lib/paypal/paypal_environment.rb +39 -0
- data/lib/paypal/paypal_http_client.rb +56 -0
- data/lib/paypal/token_requests.rb +42 -0
- data/lib/solidus_paypal_commerce_platform/access_token_authorization_request.rb +1 -1
- data/lib/solidus_paypal_commerce_platform/client.rb +4 -4
- data/lib/solidus_paypal_commerce_platform/configuration.rb +4 -4
- data/lib/solidus_paypal_commerce_platform/engine.rb +11 -3
- data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_authorize_request.rb +48 -0
- data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_capture_request.rb +46 -0
- data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb +80 -0
- data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb +36 -0
- data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/payments/authorizations_reauthorize_request.rb +50 -0
- data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/payments/captures_refund_request.rb +43 -0
- data/lib/solidus_paypal_commerce_platform/testing_support/factories.rb +2 -1
- data/lib/solidus_paypal_commerce_platform/version.rb +1 -1
- data/lib/solidus_paypal_commerce_platform.rb +1 -0
- data/lib/views/backend/spree/admin/payments/source_views/_paypal_commerce_platform.html.erb +3 -0
- data/lib/views/frontend/solidus_paypal_commerce_platform/payments/_payment.html.erb +4 -0
- data/lib/views/frontend/spree/checkout/payment/_paypal_commerce_platform.html.erb +17 -3
- data/solidus_paypal_commerce_platform.gemspec +9 -8
- metadata +52 -78
- data/spec/features/backend/new_payment_method_spec.rb +0 -40
- data/spec/features/frontend/cart_spec.rb +0 -46
- data/spec/features/frontend/checkout_spec.rb +0 -89
- data/spec/features/frontend/product_spec.rb +0 -91
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/CHECKOUT.ORDER.COMPLETED.v2.json +0 -121
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/CHECKOUT.ORDER.PROCESSED.v2.json +0 -121
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.COMPLETED.v1.json +0 -50
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.COMPLETED.v2.json +0 -72
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.DENIED.v1.json +0 -50
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.DENIED.v2.json +0 -68
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.REFUNDED.v1.json +0 -51
- data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.REFUNDED.v2.json +0 -63
- data/spec/jobs/solidus_paypal_commerce_platform/webhook_job_spec.rb +0 -44
- data/spec/lib/solidus_paypal_commerce_platform/client_spec.rb +0 -21
- data/spec/lib/solidus_paypal_commerce_platform/configuration_spec.rb +0 -91
- data/spec/models/solidus_paypal_commerce_platform/payment_method_spec.rb +0 -129
- data/spec/models/solidus_paypal_commerce_platform/payment_source_spec.rb +0 -62
- data/spec/models/solidus_paypal_commerce_platform/paypal_address_spec.rb +0 -67
- data/spec/models/solidus_paypal_commerce_platform/paypal_order_spec.rb +0 -33
- data/spec/models/solidus_paypal_commerce_platform/state_guesser_spec.rb +0 -38
- data/spec/models/solidus_paypal_commerce_platform/wizard_spec.rb +0 -9
- data/spec/requests/solidus_paypal_commerce_platform/orders_controller_spec.rb +0 -36
- data/spec/requests/solidus_paypal_commerce_platform/shipping_rates_controller_spec.rb +0 -44
- data/spec/requests/solidus_paypal_commerce_platform/wizard_controller_spec.rb +0 -44
- data/spec/spec_helper.rb +0 -32
- data/spec/support/capybara.rb +0 -11
- data/spec/support/paypal_sdk_script_tag_helper.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc92be06606fdc11bd65cb76e0121637054956852853f533dc22a0c04234bf31
|
4
|
+
data.tar.gz: 5e6eb3333ceb6590c711a572cce20a49c88ea313d6547612e1ae490766219454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '079cdd57b4e2dc48a17b79e15711b1182d31de5e12b3aa7087590df33ccd6686197c65c7636d48a57213d4fa28cff0c37cd93117eacba1b99818eafbb0ef13c1'
|
7
|
+
data.tar.gz: a66e1b6cfa262c523ab8b95d47bd975a96080b5772f8a032cae2d9fdc449f5723261409b552da351fa48def0b3a35e3049c9f50bf2224abfbe6f18f4efb2cc8b
|
data/.circleci/config.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
version: 2.1
|
2
2
|
|
3
3
|
orbs:
|
4
|
+
browser-tools: circleci/browser-tools@1.1
|
5
|
+
|
4
6
|
# Always take the latest version of the orb, this allows us to
|
5
7
|
# run specs against Solidus supported versions only without the need
|
6
8
|
# to change this configuration every time a Solidus version is released
|
@@ -9,13 +11,32 @@ orbs:
|
|
9
11
|
|
10
12
|
jobs:
|
11
13
|
run-specs-with-postgres:
|
12
|
-
executor:
|
14
|
+
executor:
|
15
|
+
name: solidusio_extensions/postgres
|
16
|
+
ruby_version: '3.1'
|
13
17
|
steps:
|
18
|
+
- checkout
|
19
|
+
- browser-tools/install-chrome
|
14
20
|
- solidusio_extensions/run-tests
|
21
|
+
|
15
22
|
run-specs-with-mysql:
|
16
|
-
executor:
|
23
|
+
executor:
|
24
|
+
name: solidusio_extensions/mysql
|
25
|
+
ruby_version: '3.0'
|
26
|
+
steps:
|
27
|
+
- checkout
|
28
|
+
- browser-tools/install-chrome
|
29
|
+
- solidusio_extensions/run-tests
|
30
|
+
|
31
|
+
run-specs-with-sqlite:
|
32
|
+
executor:
|
33
|
+
name: solidusio_extensions/sqlite
|
34
|
+
ruby_version: '2.7'
|
17
35
|
steps:
|
36
|
+
- checkout
|
37
|
+
- browser-tools/install-chrome
|
18
38
|
- solidusio_extensions/run-tests
|
39
|
+
|
19
40
|
lint-code:
|
20
41
|
executor: solidusio_extensions/sqlite-memory
|
21
42
|
steps:
|
@@ -26,6 +47,7 @@ workflows:
|
|
26
47
|
jobs:
|
27
48
|
- run-specs-with-postgres
|
28
49
|
- run-specs-with-mysql
|
50
|
+
- run-specs-with-sqlite
|
29
51
|
- lint-code
|
30
52
|
|
31
53
|
"Weekly run specs against master":
|
@@ -39,3 +61,4 @@ workflows:
|
|
39
61
|
jobs:
|
40
62
|
- run-specs-with-postgres
|
41
63
|
- run-specs-with-mysql
|
64
|
+
- run-specs-with-sqlite
|
data/.rubocop.yml
CHANGED
@@ -2,7 +2,8 @@ require:
|
|
2
2
|
- solidus_dev_support/rubocop
|
3
3
|
|
4
4
|
AllCops:
|
5
|
-
NewCops:
|
5
|
+
NewCops: disable
|
6
|
+
TargetRubyVersion: '2.7'
|
6
7
|
Exclude:
|
7
8
|
- sandbox/**/*
|
8
9
|
- spec/dummy/**/*
|
@@ -14,6 +15,10 @@ Layout/FirstArgumentIndentation:
|
|
14
15
|
Layout/FirstArrayElementIndentation:
|
15
16
|
EnforcedStyle: consistent
|
16
17
|
|
18
|
+
Naming/VariableNumber:
|
19
|
+
# PayPal uses snake_case, we use normal_case ¯\_(ツ)_/¯
|
20
|
+
Enabled: false
|
21
|
+
|
17
22
|
# We use this extensively, the alternatives are not viable or desirable.
|
18
23
|
RSpec/AnyInstance:
|
19
24
|
Enabled: false
|
@@ -43,10 +48,6 @@ RSpec/VerifiedDoubles:
|
|
43
48
|
# Sometimes you really need an "anything" double
|
44
49
|
IgnoreSymbolicNames: true
|
45
50
|
|
46
|
-
Rspec/Naming/VariableNumber:
|
47
|
-
# PayPal uses snake_case, we use normal_case ¯\_(ツ)_/¯
|
48
|
-
Enabled: false
|
49
|
-
|
50
51
|
Style/FrozenStringLiteralComment:
|
51
52
|
Exclude:
|
52
53
|
- spec/**/*
|
data/CHANGELOG.md
CHANGED
@@ -1,180 +1,238 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [v0.
|
3
|
+
## [v0.5.0](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.5.0) (2022-10-07)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/solidusio
|
5
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.4.0...v0.5.0)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Update links after moving to @solidusio [\#164](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/164) ([elia](https://github.com/elia))
|
10
|
+
- Fix assigning API created orders to the current user [\#163](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/163) ([elia](https://github.com/elia))
|
11
|
+
- Require Solidus 3 & Ruby 2.7 [\#163](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/163) ([elia](https://github.com/elia))
|
12
|
+
- Fix master, import paypal-checkout-sdk [\#161](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/161) ([cpfergus1](https://github.com/cpfergus1))
|
13
|
+
- Update to use forked solidus\_frontend when needed [\#160](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/160) ([waiting-for-dev](https://github.com/waiting-for-dev))
|
14
|
+
- Fix paypal\_order name address bug [\#153](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/153) ([RyanofWoods](https://github.com/RyanofWoods))
|
15
|
+
|
16
|
+
## [v0.4.0](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.4.0) (2022-06-03)
|
17
|
+
|
18
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.3.2...v0.4.0)
|
19
|
+
|
20
|
+
**Closed issues:**
|
21
|
+
|
22
|
+
- Gem has RuboCop warnings [\#144](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/144)
|
23
|
+
- Silent Failure In JS [\#130](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/130)
|
24
|
+
- Not Applying Sales Tax [\#126](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/126)
|
25
|
+
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- Bump SolidusPaypalCommercePlatform to 0.4.0 [\#158](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/158) ([gsmendoza](https://github.com/gsmendoza))
|
29
|
+
- Fix Rails 7 autoloading issues with SolidusPaypalCommercePlatform [\#156](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/156) ([gsmendoza](https://github.com/gsmendoza))
|
30
|
+
- Block \#capture on Pending Payments" [\#155](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/155) ([Naokimi](https://github.com/Naokimi))
|
31
|
+
- Block \#capture on PayPal PENDING Payments [\#154](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/154) ([Naokimi](https://github.com/Naokimi))
|
32
|
+
- Change Venmo integration to use Venmo standalone [\#151](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/151) ([RyanofWoods](https://github.com/RyanofWoods))
|
33
|
+
- Allow enable\_venmo preference to have default Venmo behaviour [\#148](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/148) ([RyanofWoods](https://github.com/RyanofWoods))
|
34
|
+
- Fix RuboCop warnings [\#147](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/147) ([RyanofWoods](https://github.com/RyanofWoods))
|
35
|
+
- Revert "Allow Ruby 3" [\#146](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/146) ([RyanofWoods](https://github.com/RyanofWoods))
|
36
|
+
- Add Venmo as payment option [\#138](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/138) ([RyanofWoods](https://github.com/RyanofWoods))
|
37
|
+
- Wizard\#logo use `image_path` over `image_url`. [\#131](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/131) ([essn](https://github.com/essn))
|
38
|
+
|
39
|
+
## [v0.3.2](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.3.2) (2021-05-11)
|
40
|
+
|
41
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.3.1...v0.3.2)
|
42
|
+
|
43
|
+
**Closed issues:**
|
44
|
+
|
45
|
+
- Unable To Cancel An Order [\#120](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/120)
|
46
|
+
|
47
|
+
**Merged pull requests:**
|
48
|
+
|
49
|
+
- Update solidus using solidus\_dev\_support [\#124](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/124) ([DanielePalombo](https://github.com/DanielePalombo))
|
50
|
+
- Add NO\_SHIPPING to shipping preference [\#123](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/123) ([DanielePalombo](https://github.com/DanielePalombo))
|
51
|
+
- Support solidus 3.0 [\#122](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/122) ([DanielePalombo](https://github.com/DanielePalombo))
|
52
|
+
|
53
|
+
## [v0.3.1](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.3.1) (2021-04-20)
|
54
|
+
|
55
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.3.0...v0.3.1)
|
56
|
+
|
57
|
+
**Merged pull requests:**
|
58
|
+
|
59
|
+
- Allow Solidus 3 [\#121](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/121) ([kennyadsl](https://github.com/kennyadsl))
|
60
|
+
|
61
|
+
## [v0.3.0](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.3.0) (2021-03-16)
|
62
|
+
|
63
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.2.2...v0.3.0)
|
6
64
|
|
7
65
|
**Closed issues:**
|
8
66
|
|
9
|
-
- Prepare Solidus Paypal Commerce Platform for Solidus 3.0 [\#115](https://github.com/solidusio
|
67
|
+
- Prepare Solidus Paypal Commerce Platform for Solidus 3.0 [\#115](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/115)
|
10
68
|
|
11
69
|
**Merged pull requests:**
|
12
70
|
|
13
|
-
- Use new factories loading method [\#118](https://github.com/solidusio
|
14
|
-
- Update extension for Solidus 3.0 [\#117](https://github.com/solidusio
|
71
|
+
- Use new factories loading method [\#118](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/118) ([kennyadsl](https://github.com/kennyadsl))
|
72
|
+
- Update extension for Solidus 3.0 [\#117](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/117) ([seand7565](https://github.com/seand7565))
|
15
73
|
|
16
|
-
## [v0.2.2](https://github.com/solidusio
|
74
|
+
## [v0.2.2](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.2.2) (2020-11-20)
|
17
75
|
|
18
|
-
[Full Changelog](https://github.com/solidusio
|
76
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.2.1...v0.2.2)
|
19
77
|
|
20
78
|
**Implemented enhancements:**
|
21
79
|
|
22
|
-
- Make the PayPal messaging component a bit more modular [\#112](https://github.com/solidusio
|
23
|
-
- Implement and QA Paypal credit solutions [\#99](https://github.com/solidusio
|
80
|
+
- Make the PayPal messaging component a bit more modular [\#112](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/112)
|
81
|
+
- Implement and QA Paypal credit solutions [\#99](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/99)
|
24
82
|
|
25
83
|
**Closed issues:**
|
26
84
|
|
27
|
-
- Simulated Address Info in Live Order [\#104](https://github.com/solidusio
|
85
|
+
- Simulated Address Info in Live Order [\#104](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/104)
|
28
86
|
|
29
87
|
**Merged pull requests:**
|
30
88
|
|
31
|
-
- Relax SolidusWebhooks dependency [\#114](https://github.com/solidusio
|
32
|
-
- Add information about paypal credit messaging to readme [\#113](https://github.com/solidusio
|
89
|
+
- Relax SolidusWebhooks dependency [\#114](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/114) ([kennyadsl](https://github.com/kennyadsl))
|
90
|
+
- Add information about paypal credit messaging to readme [\#113](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/113) ([seand7565](https://github.com/seand7565))
|
33
91
|
|
34
|
-
## [v0.2.1](https://github.com/solidusio
|
92
|
+
## [v0.2.1](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.2.1) (2020-11-09)
|
35
93
|
|
36
|
-
[Full Changelog](https://github.com/solidusio
|
94
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.2.0...v0.2.1)
|
37
95
|
|
38
96
|
**Closed issues:**
|
39
97
|
|
40
|
-
- There was a problem connecting with paypal. [\#107](https://github.com/solidusio
|
41
|
-
- Bad Request \(400\) when opening PayPal Payment Popup \(eg clicking Pay with PayPal during checkout\) [\#103](https://github.com/solidusio
|
98
|
+
- There was a problem connecting with paypal. [\#107](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/107)
|
99
|
+
- Bad Request \(400\) when opening PayPal Payment Popup \(eg clicking Pay with PayPal during checkout\) [\#103](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/103)
|
42
100
|
|
43
101
|
**Merged pull requests:**
|
44
102
|
|
45
|
-
- Move and rename address decorator [\#111](https://github.com/solidusio
|
46
|
-
- Constrain solidus\_support to 0.5.1 or greater [\#110](https://github.com/solidusio
|
47
|
-
- Add currency to PayPal SDK URL [\#108](https://github.com/solidusio
|
48
|
-
- Update specs to comply with new rubocop regulations [\#106](https://github.com/solidusio
|
49
|
-
- Add address only to initial PayPal request [\#105](https://github.com/solidusio
|
103
|
+
- Move and rename address decorator [\#111](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/111) ([seand7565](https://github.com/seand7565))
|
104
|
+
- Constrain solidus\_support to 0.5.1 or greater [\#110](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/110) ([seand7565](https://github.com/seand7565))
|
105
|
+
- Add currency to PayPal SDK URL [\#108](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/108) ([seand7565](https://github.com/seand7565))
|
106
|
+
- Update specs to comply with new rubocop regulations [\#106](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/106) ([seand7565](https://github.com/seand7565))
|
107
|
+
- Add address only to initial PayPal request [\#105](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/105) ([seand7565](https://github.com/seand7565))
|
50
108
|
|
51
|
-
## [v0.2.0](https://github.com/solidusio
|
109
|
+
## [v0.2.0](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.2.0) (2020-10-13)
|
52
110
|
|
53
|
-
[Full Changelog](https://github.com/solidusio
|
111
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.1.0...v0.2.0)
|
54
112
|
|
55
113
|
**Closed issues:**
|
56
114
|
|
57
|
-
- README lists two different types of PayPal credentials [\#97](https://github.com/solidusio
|
58
|
-
- `
|
59
|
-
- Make this extension the default option for Solidus [\#88](https://github.com/solidusio
|
115
|
+
- README lists two different types of PayPal credentials [\#97](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/97)
|
116
|
+
- `paypal_email_confirmed` is not an actual preference [\#96](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/96)
|
117
|
+
- Make this extension the default option for Solidus [\#88](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/88)
|
60
118
|
|
61
119
|
**Merged pull requests:**
|
62
120
|
|
63
|
-
- Add PayPal messaging component [\#102](https://github.com/solidusio
|
64
|
-
- Add partner ID attribute to SDK javascript tag [\#101](https://github.com/solidusio
|
65
|
-
- Set current\_order\_id and token during payment step [\#100](https://github.com/solidusio
|
66
|
-
- Remove incorrect/unclear info from README [\#98](https://github.com/solidusio
|
67
|
-
- Update the extension with the latest solidus\_dev\_support defaults [\#95](https://github.com/solidusio
|
68
|
-
- Add skip migration option to installer [\#94](https://github.com/solidusio
|
69
|
-
- Update README to reflect referral fee [\#93](https://github.com/solidusio
|
121
|
+
- Add PayPal messaging component [\#102](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/102) ([seand7565](https://github.com/seand7565))
|
122
|
+
- Add partner ID attribute to SDK javascript tag [\#101](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/101) ([seand7565](https://github.com/seand7565))
|
123
|
+
- Set current\_order\_id and token during payment step [\#100](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/100) ([MFRWDesign](https://github.com/MFRWDesign))
|
124
|
+
- Remove incorrect/unclear info from README [\#98](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/98) ([seand7565](https://github.com/seand7565))
|
125
|
+
- Update the extension with the latest solidus\_dev\_support defaults [\#95](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/95) ([elia](https://github.com/elia))
|
126
|
+
- Add skip migration option to installer [\#94](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/94) ([seand7565](https://github.com/seand7565))
|
127
|
+
- Update README to reflect referral fee [\#93](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/93) ([seand7565](https://github.com/seand7565))
|
70
128
|
|
71
|
-
## [v0.1.0](https://github.com/solidusio
|
129
|
+
## [v0.1.0](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.1.0) (2020-09-03)
|
72
130
|
|
73
|
-
[Full Changelog](https://github.com/solidusio
|
131
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.0.1...v0.1.0)
|
74
132
|
|
75
133
|
**Merged pull requests:**
|
76
134
|
|
77
|
-
- Temporarily switch from apparition to cuprite [\#92](https://github.com/solidusio
|
78
|
-
-
|
79
|
-
- Add
|
135
|
+
- Temporarily switch from apparition to cuprite [\#92](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/92) ([elia](https://github.com/elia))
|
136
|
+
- Update links after moving the repo to solidusio-contrib [\#91](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/91) ([elia](https://github.com/elia))
|
137
|
+
- Add a configurable state\_guesser class to guess states [\#90](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/90) ([seand7565](https://github.com/seand7565))
|
138
|
+
- Add better error handling to button\_actions.js [\#89](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/89) ([seand7565](https://github.com/seand7565))
|
80
139
|
|
81
|
-
## [v0.0.1](https://github.com/solidusio
|
140
|
+
## [v0.0.1](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.0.1) (2020-08-10)
|
82
141
|
|
83
|
-
[Full Changelog](https://github.com/solidusio
|
142
|
+
[Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/11111204cc53e8bcfd365ae70506c07940446b0c...v0.0.1)
|
84
143
|
|
85
144
|
**Implemented enhancements:**
|
86
145
|
|
87
|
-
- Frontend users should be able to check out using PayPal [\#6](https://github.com/solidusio
|
88
|
-
- Admin users should be able to style the PayPal buttons on the payment\_method show page [\#5](https://github.com/solidusio
|
89
|
-
- Webhooks [\#83](https://github.com/solidusio
|
90
|
-
- Display paypal email to customer on confirmation [\#54](https://github.com/solidusio
|
91
|
-
- Use an env accessor to control live/sandbox urls and classes [\#31](https://github.com/solidusio
|
92
|
-
- Add response object to API calls to PayPal [\#30](https://github.com/solidusio
|
146
|
+
- Frontend users should be able to check out using PayPal [\#6](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/6)
|
147
|
+
- Admin users should be able to style the PayPal buttons on the payment\_method show page [\#5](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/5)
|
148
|
+
- Webhooks [\#83](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/83) ([elia](https://github.com/elia))
|
149
|
+
- Display paypal email to customer on confirmation [\#54](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/54) ([seand7565](https://github.com/seand7565))
|
150
|
+
- Use an env accessor to control live/sandbox urls and classes [\#31](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/31) ([elia](https://github.com/elia))
|
151
|
+
- Add response object to API calls to PayPal [\#30](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/30) ([seand7565](https://github.com/seand7565))
|
93
152
|
|
94
153
|
**Fixed bugs:**
|
95
154
|
|
96
|
-
- Users can check out with invalid payment [\#19](https://github.com/solidusio
|
97
|
-
- Have different nonce for every click of the wizard button [\#87](https://github.com/solidusio
|
98
|
-
- Correctly communicate errors when updating shipping rates [\#86](https://github.com/solidusio
|
99
|
-
- Add deface to deps [\#57](https://github.com/solidusio
|
155
|
+
- Users can check out with invalid payment [\#19](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/19)
|
156
|
+
- Have different nonce for every click of the wizard button [\#87](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/87) ([elia](https://github.com/elia))
|
157
|
+
- Correctly communicate errors when updating shipping rates [\#86](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/86) ([elia](https://github.com/elia))
|
158
|
+
- Add deface to deps [\#57](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/57) ([elia](https://github.com/elia))
|
100
159
|
|
101
160
|
**Closed issues:**
|
102
161
|
|
103
|
-
- Add something to the README about backend payments [\#75](https://github.com/solidusio
|
104
|
-
- Explore enabling the payment method by default [\#71](https://github.com/solidusio
|
105
|
-
- Explore subscribing to webhooks [\#70](https://github.com/solidusio
|
106
|
-
- We're using the wrong ID for paypal\_order\_id [\#69](https://github.com/solidusio
|
107
|
-
- Handle instrument declined errors [\#68](https://github.com/solidusio
|
108
|
-
- Extend lightbox during customer payment [\#63](https://github.com/solidusio
|
109
|
-
- Add this extension to demo store for integration team walkthrough [\#49](https://github.com/solidusio
|
110
|
-
- Store PayPal Debug ID [\#48](https://github.com/solidusio
|
111
|
-
- PayPal email address needs to be included on the confirm step [\#47](https://github.com/solidusio
|
112
|
-
- Digital goods should be set as not requiring shipment [\#46](https://github.com/solidusio
|
113
|
-
- Allow checkout on product/cart page to complete the order [\#44](https://github.com/solidusio
|
114
|
-
- PayPal uses different states than Solidus for some countries [\#38](https://github.com/solidusio
|
115
|
-
- Validate amount charged with PayPal [\#37](https://github.com/solidusio
|
116
|
-
- Allow order simulator to be a configurable class [\#36](https://github.com/solidusio
|
117
|
-
- Admin users have the option to edit payment amount [\#29](https://github.com/solidusio
|
118
|
-
- Add PayPal button to product page [\#27](https://github.com/solidusio
|
119
|
-
- Add PayPal button to cart page [\#26](https://github.com/solidusio
|
120
|
-
- Add `commit=false` to javascript SDK URL [\#18](https://github.com/solidusio
|
121
|
-
- Explore using Rails secrets to encode and decrypt PayPal client id and secret [\#17](https://github.com/solidusio
|
122
|
-
- Backend users should be able to checkout & admin payments [\#15](https://github.com/solidusio
|
123
|
-
- Change static sandbox URL and objects to dynamic [\#14](https://github.com/solidusio
|
124
|
-
- PayPal response address change [\#13](https://github.com/solidusio
|
125
|
-
- Ensure the email is verified before activating the payment method [\#9](https://github.com/solidusio
|
126
|
-
- Add a URL generator for the PayPal JS SDK [\#8](https://github.com/solidusio
|
127
|
-
- Allow users to onboard with PayPal [\#1](https://github.com/solidusio
|
162
|
+
- Add something to the README about backend payments [\#75](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/75)
|
163
|
+
- Explore enabling the payment method by default [\#71](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/71)
|
164
|
+
- Explore subscribing to webhooks [\#70](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/70)
|
165
|
+
- We're using the wrong ID for paypal\_order\_id [\#69](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/69)
|
166
|
+
- Handle instrument declined errors [\#68](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/68)
|
167
|
+
- Extend lightbox during customer payment [\#63](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/63)
|
168
|
+
- Add this extension to demo store for integration team walkthrough [\#49](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/49)
|
169
|
+
- Store PayPal Debug ID [\#48](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/48)
|
170
|
+
- PayPal email address needs to be included on the confirm step [\#47](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/47)
|
171
|
+
- Digital goods should be set as not requiring shipment [\#46](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/46)
|
172
|
+
- Allow checkout on product/cart page to complete the order [\#44](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/44)
|
173
|
+
- PayPal uses different states than Solidus for some countries [\#38](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/38)
|
174
|
+
- Validate amount charged with PayPal [\#37](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/37)
|
175
|
+
- Allow order simulator to be a configurable class [\#36](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/36)
|
176
|
+
- Admin users have the option to edit payment amount [\#29](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/29)
|
177
|
+
- Add PayPal button to product page [\#27](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/27)
|
178
|
+
- Add PayPal button to cart page [\#26](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/26)
|
179
|
+
- Add `commit=false` to javascript SDK URL [\#18](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/18)
|
180
|
+
- Explore using Rails secrets to encode and decrypt PayPal client id and secret [\#17](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/17)
|
181
|
+
- Backend users should be able to checkout & admin payments [\#15](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/15)
|
182
|
+
- Change static sandbox URL and objects to dynamic [\#14](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/14)
|
183
|
+
- PayPal response address change [\#13](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/13)
|
184
|
+
- Ensure the email is verified before activating the payment method [\#9](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/9)
|
185
|
+
- Add a URL generator for the PayPal JS SDK [\#8](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/8)
|
186
|
+
- Allow users to onboard with PayPal [\#1](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/1)
|
128
187
|
|
129
188
|
**Merged pull requests:**
|
130
189
|
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
- Add
|
158
|
-
- Add PayPal
|
159
|
-
- Add
|
160
|
-
- Add
|
161
|
-
- Add
|
162
|
-
-
|
163
|
-
-
|
164
|
-
-
|
165
|
-
-
|
166
|
-
- Add
|
167
|
-
- Add
|
168
|
-
-
|
169
|
-
-
|
170
|
-
-
|
171
|
-
-
|
172
|
-
-
|
173
|
-
-
|
174
|
-
-
|
175
|
-
-
|
176
|
-
- Add
|
177
|
-
- Add paypal\_commerce\_platform as a payment method [\#2](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/2) ([seand7565](https://github.com/seand7565))
|
190
|
+
- Use live partner ids [\#85](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/85) ([elia](https://github.com/elia))
|
191
|
+
- Update README to account for checkouts without a confirmation step [\#84](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/84) ([seand7565](https://github.com/seand7565))
|
192
|
+
- Replace order simulator with something simpler [\#82](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/82) ([seand7565](https://github.com/seand7565))
|
193
|
+
- Cleanup [\#81](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/81) ([elia](https://github.com/elia))
|
194
|
+
- Send line\_item and shipping promotions to PayPal [\#80](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/80) ([seand7565](https://github.com/seand7565))
|
195
|
+
- Change outstanding\_balance to total in order total checker [\#79](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/79) ([seand7565](https://github.com/seand7565))
|
196
|
+
- Add overlay to ease transition to confirmation page [\#78](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/78) ([seand7565](https://github.com/seand7565))
|
197
|
+
- Default available\_to\_users to true [\#77](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/77) ([seand7565](https://github.com/seand7565))
|
198
|
+
- Add info about PayPal Terminal to README [\#76](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/76) ([seand7565](https://github.com/seand7565))
|
199
|
+
- Return a payment declined error on the frontend [\#74](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/74) ([seand7565](https://github.com/seand7565))
|
200
|
+
- Only use the necessary data to let the spec pass [\#73](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/73) ([elia](https://github.com/elia))
|
201
|
+
- Display capture\_id instead of order\_id to admin user [\#72](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/72) ([seand7565](https://github.com/seand7565))
|
202
|
+
- Use options instead of preferences [\#67](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/67) ([seand7565](https://github.com/seand7565))
|
203
|
+
- Update README to reflect new preferences [\#66](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/66) ([seand7565](https://github.com/seand7565))
|
204
|
+
- Add version to cache\_key [\#65](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/65) ([seand7565](https://github.com/seand7565))
|
205
|
+
- Include payment method information in pricing options cache key [\#62](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/62) ([seand7565](https://github.com/seand7565))
|
206
|
+
- Only use available payment\_methods [\#61](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/61) ([seand7565](https://github.com/seand7565))
|
207
|
+
- Explicitly require deface [\#60](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/60) ([elia](https://github.com/elia))
|
208
|
+
- Verify email address is verified before allowing payment method to be available [\#59](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/59) ([seand7565](https://github.com/seand7565))
|
209
|
+
- Use the ORB definition of lint-code [\#58](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/58) ([elia](https://github.com/elia))
|
210
|
+
- Send amount of payment to PayPal on capture [\#56](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/56) ([seand7565](https://github.com/seand7565))
|
211
|
+
- Verify amount to charge with order total [\#55](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/55) ([seand7565](https://github.com/seand7565))
|
212
|
+
- Linting the project with rubocop [\#53](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/53) ([elia](https://github.com/elia))
|
213
|
+
- Add PayPal Debug ID to log entries [\#52](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/52) ([seand7565](https://github.com/seand7565))
|
214
|
+
- Fix PayPal request success message en.yml paths [\#51](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/51) ([seand7565](https://github.com/seand7565))
|
215
|
+
- Add configuration options to SolidusPaypalCommercePlatform [\#50](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/50) ([seand7565](https://github.com/seand7565))
|
216
|
+
- Add PayPal button to product page [\#45](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/45) ([seand7565](https://github.com/seand7565))
|
217
|
+
- Add PayPal Button To Cart Page [\#43](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/43) ([seand7565](https://github.com/seand7565))
|
218
|
+
- Add ability to change address on PayPal [\#42](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/42) ([seand7565](https://github.com/seand7565))
|
219
|
+
- Add a basic codecov config to show commit status [\#41](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/41) ([elia](https://github.com/elia))
|
220
|
+
- Add CI & Coverage badges to the readme [\#40](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/40) ([elia](https://github.com/elia))
|
221
|
+
- Rely on sdk request classes [\#39](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/39) ([elia](https://github.com/elia))
|
222
|
+
- Use "commit=false" in the JS SDK url when "confirm" step is present [\#33](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/33) ([elia](https://github.com/elia))
|
223
|
+
- Renames: Gateway → PaymentMethod / Requests → Gateway [\#32](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/32) ([elia](https://github.com/elia))
|
224
|
+
- Add PayPal Virtual Terminal notice to backend [\#25](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/25) ([seand7565](https://github.com/seand7565))
|
225
|
+
- Add missing partials necessary for backend [\#24](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/24) ([seand7565](https://github.com/seand7565))
|
226
|
+
- Add the ability to void authorized payments [\#23](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/23) ([seand7565](https://github.com/seand7565))
|
227
|
+
- Fix order controller response [\#22](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/22) ([seand7565](https://github.com/seand7565))
|
228
|
+
- Add refund ability to admin payment management [\#21](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/21) ([seand7565](https://github.com/seand7565))
|
229
|
+
- Fixes and refactoring [\#20](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/20) ([elia](https://github.com/elia))
|
230
|
+
- Add ability for admin users to customize paypal button [\#16](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/16) ([seand7565](https://github.com/seand7565))
|
231
|
+
- Restore the generic bin/rails command [\#11](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/11) ([elia](https://github.com/elia))
|
232
|
+
- Add PayPal buttons to frontend checkout flow [\#10](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/10) ([seand7565](https://github.com/seand7565))
|
233
|
+
- Update readme to reflect onboarding and wizards 🧙 [\#4](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/4) ([seand7565](https://github.com/seand7565))
|
234
|
+
- Add setup wizard for paypal commerce platform [\#3](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/3) ([seand7565](https://github.com/seand7565))
|
235
|
+
- Add paypal\_commerce\_platform as a payment method [\#2](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/2) ([seand7565](https://github.com/seand7565))
|
178
236
|
|
179
237
|
|
180
238
|
|
data/Gemfile
CHANGED
@@ -4,17 +4,23 @@ source 'https://rubygems.org'
|
|
4
4
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
5
5
|
|
6
6
|
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
|
7
|
-
|
7
|
+
solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
|
8
|
+
%w[solidusio/solidus solidusio/solidus_frontend]
|
9
|
+
else
|
10
|
+
%w[solidusio/solidus] * 2
|
11
|
+
end
|
12
|
+
gem 'solidus', github: solidus_git, branch: branch
|
13
|
+
gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
|
8
14
|
|
9
15
|
# Needed to help Bundler figure out how to resolve dependencies,
|
10
16
|
# otherwise it takes forever to resolve them.
|
11
17
|
# See https://github.com/bundler/bundler/issues/6677
|
12
|
-
gem 'rails', '>0.a'
|
18
|
+
gem 'rails', ENV.fetch('RAILS_VERSION', '>0.a')
|
13
19
|
|
14
20
|
# Provides basic authentication functionality for testing parts of your engine
|
15
21
|
gem 'solidus_auth_devise'
|
16
22
|
|
17
|
-
case ENV
|
23
|
+
case ENV.fetch('DB', nil)
|
18
24
|
when 'mysql'
|
19
25
|
gem 'mysql2'
|
20
26
|
when 'postgresql'
|
@@ -23,6 +29,13 @@ else
|
|
23
29
|
gem 'sqlite3'
|
24
30
|
end
|
25
31
|
|
32
|
+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3')
|
33
|
+
# 'net/smtp' is required by 'mail', see:
|
34
|
+
# - https://github.com/ruby/net-protocol/issues/10
|
35
|
+
# - https://stackoverflow.com/a/72474475
|
36
|
+
gem 'net-smtp', require: false
|
37
|
+
end
|
38
|
+
|
26
39
|
gemspec
|
27
40
|
|
28
41
|
# Use a local Gemfile to include development dependencies that might not be
|