solidus_paypal_commerce_platform 0.3.2 → 0.5.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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +25 -2
  3. data/.rubocop.yml +6 -5
  4. data/CHANGELOG.md +180 -122
  5. data/Gemfile +16 -3
  6. data/README.md +27 -2
  7. data/app/assets/javascripts/spree/frontend/solidus_paypal_commerce_platform/button_actions.js +3 -1
  8. data/app/assets/javascripts/spree/frontend/solidus_paypal_commerce_platform/buttons.js +14 -0
  9. data/app/controllers/solidus_paypal_commerce_platform/orders_controller.rb +1 -1
  10. data/app/controllers/solidus_paypal_commerce_platform/payments_controller.rb +4 -2
  11. data/app/helpers/solidus_paypal_commerce_platform/button_options_helper.rb +4 -0
  12. data/app/models/solidus_paypal_commerce_platform/gateway.rb +20 -3
  13. data/app/models/solidus_paypal_commerce_platform/payment_method.rb +21 -1
  14. data/app/models/solidus_paypal_commerce_platform/payment_source.rb +12 -1
  15. data/app/models/solidus_paypal_commerce_platform/paypal_order.rb +6 -21
  16. data/app/models/solidus_paypal_commerce_platform/wizard.rb +1 -1
  17. data/bin/rails-engine +1 -1
  18. data/config/locales/en.yml +34 -1
  19. data/db/migrate/20211220133406_add_paypal_funding_source_to_paypal_commerce_platform_sources.rb +5 -0
  20. data/lib/paypal/access_token.rb +22 -0
  21. data/lib/paypal/lib.rb +19 -0
  22. data/lib/paypal/paypal_checkout_sdk/orders/orders_authorize_request.rb +44 -0
  23. data/lib/paypal/paypal_checkout_sdk/orders/orders_capture_request.rb +42 -0
  24. data/lib/paypal/paypal_checkout_sdk/orders/orders_create_request.rb +36 -0
  25. data/lib/paypal/paypal_checkout_sdk/orders/orders_get_request.rb +26 -0
  26. data/lib/paypal/paypal_checkout_sdk/orders/orders_patch_request.rb +77 -0
  27. data/lib/paypal/paypal_checkout_sdk/orders/orders_validate_request.rb +34 -0
  28. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_capture_request.rb +38 -0
  29. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb +26 -0
  30. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_reauthorize_request.rb +45 -0
  31. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb +27 -0
  32. data/lib/paypal/paypal_checkout_sdk/payments/captures_get_request.rb +26 -0
  33. data/lib/paypal/paypal_checkout_sdk/payments/captures_refund_request.rb +40 -0
  34. data/lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb +26 -0
  35. data/lib/paypal/paypal_environment.rb +39 -0
  36. data/lib/paypal/paypal_http_client.rb +56 -0
  37. data/lib/paypal/token_requests.rb +42 -0
  38. data/lib/solidus_paypal_commerce_platform/access_token_authorization_request.rb +1 -1
  39. data/lib/solidus_paypal_commerce_platform/client.rb +4 -4
  40. data/lib/solidus_paypal_commerce_platform/configuration.rb +4 -4
  41. data/lib/solidus_paypal_commerce_platform/engine.rb +11 -3
  42. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_authorize_request.rb +48 -0
  43. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_capture_request.rb +46 -0
  44. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb +80 -0
  45. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb +36 -0
  46. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/payments/authorizations_reauthorize_request.rb +50 -0
  47. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/payments/captures_refund_request.rb +43 -0
  48. data/lib/solidus_paypal_commerce_platform/testing_support/factories.rb +2 -1
  49. data/lib/solidus_paypal_commerce_platform/version.rb +1 -1
  50. data/lib/solidus_paypal_commerce_platform.rb +1 -0
  51. data/lib/views/backend/spree/admin/payments/source_views/_paypal_commerce_platform.html.erb +3 -0
  52. data/lib/views/frontend/solidus_paypal_commerce_platform/payments/_payment.html.erb +4 -0
  53. data/lib/views/frontend/spree/checkout/payment/_paypal_commerce_platform.html.erb +17 -3
  54. data/solidus_paypal_commerce_platform.gemspec +9 -8
  55. metadata +52 -78
  56. data/spec/features/backend/new_payment_method_spec.rb +0 -40
  57. data/spec/features/frontend/cart_spec.rb +0 -46
  58. data/spec/features/frontend/checkout_spec.rb +0 -89
  59. data/spec/features/frontend/product_spec.rb +0 -91
  60. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/CHECKOUT.ORDER.COMPLETED.v2.json +0 -121
  61. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/CHECKOUT.ORDER.PROCESSED.v2.json +0 -121
  62. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.COMPLETED.v1.json +0 -50
  63. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.COMPLETED.v2.json +0 -72
  64. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.DENIED.v1.json +0 -50
  65. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.DENIED.v2.json +0 -68
  66. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.REFUNDED.v1.json +0 -51
  67. data/spec/jobs/solidus_paypal_commerce_platform/fixtures/PAYMENT.CAPTURE.REFUNDED.v2.json +0 -63
  68. data/spec/jobs/solidus_paypal_commerce_platform/webhook_job_spec.rb +0 -44
  69. data/spec/lib/solidus_paypal_commerce_platform/client_spec.rb +0 -21
  70. data/spec/lib/solidus_paypal_commerce_platform/configuration_spec.rb +0 -91
  71. data/spec/models/solidus_paypal_commerce_platform/payment_method_spec.rb +0 -129
  72. data/spec/models/solidus_paypal_commerce_platform/payment_source_spec.rb +0 -62
  73. data/spec/models/solidus_paypal_commerce_platform/paypal_address_spec.rb +0 -67
  74. data/spec/models/solidus_paypal_commerce_platform/paypal_order_spec.rb +0 -33
  75. data/spec/models/solidus_paypal_commerce_platform/state_guesser_spec.rb +0 -38
  76. data/spec/models/solidus_paypal_commerce_platform/wizard_spec.rb +0 -9
  77. data/spec/requests/solidus_paypal_commerce_platform/orders_controller_spec.rb +0 -36
  78. data/spec/requests/solidus_paypal_commerce_platform/shipping_rates_controller_spec.rb +0 -44
  79. data/spec/requests/solidus_paypal_commerce_platform/wizard_controller_spec.rb +0 -44
  80. data/spec/spec_helper.rb +0 -32
  81. data/spec/support/capybara.rb +0 -11
  82. 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: f0a234ec6a201a2b7e7a4f9e3c65359c70acaea23995134f7de9513a96530fc4
4
- data.tar.gz: b94786018f9da41a5e5915db8c87b87c2eaa767580e8739c11ae472fb248d782
3
+ metadata.gz: bc92be06606fdc11bd65cb76e0121637054956852853f533dc22a0c04234bf31
4
+ data.tar.gz: 5e6eb3333ceb6590c711a572cce20a49c88ea313d6547612e1ae490766219454
5
5
  SHA512:
6
- metadata.gz: 825f4bcff61bbb9ff666391607dc657383d67b2635454375bc12df1a8bef1c02e2cff334b0474ce53dd9d7e04c4d8885dcc9a85ccb729d31a641ab5b9ccaa84c
7
- data.tar.gz: 7589bcb66e13a57e5154227ef9212b209177f1a3f76338c67c852ca837c9df60670e8ce1730153b7121db364034f191170f59d95a863b563663ba47fcfde6b35
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: solidusio_extensions/postgres
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: solidusio_extensions/mysql
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: enable
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.0](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/tree/v0.3.0) (2021-03-16)
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-contrib/solidus_paypal_commerce_platform/compare/v0.2.2...v0.3.0)
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-contrib/solidus_paypal_commerce_platform/issues/115)
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-contrib/solidus_paypal_commerce_platform/pull/118) ([kennyadsl](https://github.com/kennyadsl))
14
- - Update extension for Solidus 3.0 [\#117](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/117) ([seand7565](https://github.com/seand7565))
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-contrib/solidus_paypal_commerce_platform/tree/v0.2.2) (2020-11-20)
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-contrib/solidus_paypal_commerce_platform/compare/v0.2.1...v0.2.2)
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-contrib/solidus_paypal_commerce_platform/issues/112)
23
- - Implement and QA Paypal credit solutions [\#99](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/99)
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-contrib/solidus_paypal_commerce_platform/issues/104)
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-contrib/solidus_paypal_commerce_platform/pull/114) ([kennyadsl](https://github.com/kennyadsl))
32
- - Add information about paypal credit messaging to readme [\#113](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/113) ([seand7565](https://github.com/seand7565))
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-contrib/solidus_paypal_commerce_platform/tree/v0.2.1) (2020-11-09)
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-contrib/solidus_paypal_commerce_platform/compare/v0.2.0...v0.2.1)
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-contrib/solidus_paypal_commerce_platform/issues/107)
41
- - Bad Request \(400\) when opening PayPal Payment Popup \(eg clicking Pay with PayPal during checkout\) [\#103](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/103)
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-contrib/solidus_paypal_commerce_platform/pull/111) ([seand7565](https://github.com/seand7565))
46
- - Constrain solidus\_support to 0.5.1 or greater [\#110](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/110) ([seand7565](https://github.com/seand7565))
47
- - Add currency to PayPal SDK URL [\#108](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/108) ([seand7565](https://github.com/seand7565))
48
- - Update specs to comply with new rubocop regulations [\#106](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/106) ([seand7565](https://github.com/seand7565))
49
- - Add address only to initial PayPal request [\#105](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/105) ([seand7565](https://github.com/seand7565))
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-contrib/solidus_paypal_commerce_platform/tree/v0.2.0) (2020-10-13)
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-contrib/solidus_paypal_commerce_platform/compare/v0.1.0...v0.2.0)
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-contrib/solidus_paypal_commerce_platform/issues/97)
58
- - `paypal\_email\_confirmed` is not an actual preference [\#96](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/96)
59
- - Make this extension the default option for Solidus [\#88](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/88)
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-contrib/solidus_paypal_commerce_platform/pull/102) ([seand7565](https://github.com/seand7565))
64
- - Add partner ID attribute to SDK javascript tag [\#101](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/101) ([seand7565](https://github.com/seand7565))
65
- - Set current\_order\_id and token during payment step [\#100](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/100) ([MFRWDesign](https://github.com/MFRWDesign))
66
- - Remove incorrect/unclear info from README [\#98](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/98) ([seand7565](https://github.com/seand7565))
67
- - Update the extension with the latest solidus\_dev\_support defaults [\#95](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/95) ([elia](https://github.com/elia))
68
- - Add skip migration option to installer [\#94](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/94) ([seand7565](https://github.com/seand7565))
69
- - Update README to reflect referral fee [\#93](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/93) ([seand7565](https://github.com/seand7565))
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-contrib/solidus_paypal_commerce_platform/tree/v0.1.0) (2020-09-03)
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-contrib/solidus_paypal_commerce_platform/compare/v0.0.1...v0.1.0)
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-contrib/solidus_paypal_commerce_platform/pull/92) ([elia](https://github.com/elia))
78
- - Add a configurable state\_guesser class to guess states [\#90](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/90) ([seand7565](https://github.com/seand7565))
79
- - Add better error handling to button\_actions.js [\#89](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/89) ([seand7565](https://github.com/seand7565))
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-contrib/solidus_paypal_commerce_platform/tree/v0.0.1) (2020-08-10)
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-contrib/solidus_paypal_commerce_platform/compare/11111204cc53e8bcfd365ae70506c07940446b0c...v0.0.1)
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-contrib/solidus_paypal_commerce_platform/issues/6)
88
- - Admin users should be able to style the PayPal buttons on the payment\_method show page [\#5](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/5)
89
- - Webhooks [\#83](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/83) ([elia](https://github.com/elia))
90
- - Display paypal email to customer on confirmation [\#54](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/54) ([seand7565](https://github.com/seand7565))
91
- - Use an env accessor to control live/sandbox urls and classes [\#31](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/31) ([elia](https://github.com/elia))
92
- - Add response object to API calls to PayPal [\#30](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/30) ([seand7565](https://github.com/seand7565))
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-contrib/solidus_paypal_commerce_platform/issues/19)
97
- - Have different nonce for every click of the wizard button [\#87](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/87) ([elia](https://github.com/elia))
98
- - Correctly communicate errors when updating shipping rates [\#86](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/86) ([elia](https://github.com/elia))
99
- - Add deface to deps [\#57](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/57) ([elia](https://github.com/elia))
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-contrib/solidus_paypal_commerce_platform/issues/75)
104
- - Explore enabling the payment method by default [\#71](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/71)
105
- - Explore subscribing to webhooks [\#70](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/70)
106
- - We're using the wrong ID for paypal\_order\_id [\#69](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/69)
107
- - Handle instrument declined errors [\#68](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/68)
108
- - Extend lightbox during customer payment [\#63](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/63)
109
- - Add this extension to demo store for integration team walkthrough [\#49](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/49)
110
- - Store PayPal Debug ID [\#48](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/48)
111
- - PayPal email address needs to be included on the confirm step [\#47](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/47)
112
- - Digital goods should be set as not requiring shipment [\#46](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/46)
113
- - Allow checkout on product/cart page to complete the order [\#44](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/44)
114
- - PayPal uses different states than Solidus for some countries [\#38](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/38)
115
- - Validate amount charged with PayPal [\#37](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/37)
116
- - Allow order simulator to be a configurable class [\#36](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/36)
117
- - Admin users have the option to edit payment amount [\#29](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/29)
118
- - Add PayPal button to product page [\#27](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/27)
119
- - Add PayPal button to cart page [\#26](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/26)
120
- - Add `commit=false` to javascript SDK URL [\#18](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/18)
121
- - Explore using Rails secrets to encode and decrypt PayPal client id and secret [\#17](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/17)
122
- - Backend users should be able to checkout & admin payments [\#15](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/15)
123
- - Change static sandbox URL and objects to dynamic [\#14](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/14)
124
- - PayPal response address change [\#13](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/13)
125
- - Ensure the email is verified before activating the payment method [\#9](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/9)
126
- - Add a URL generator for the PayPal JS SDK [\#8](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/8)
127
- - Allow users to onboard with PayPal [\#1](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/1)
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
- - Update links after moving the repo to solidusio-contrib [\#91](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/91) ([elia](https://github.com/elia))
132
- - Use live partner ids [\#85](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/85) ([elia](https://github.com/elia))
133
- - Update README to account for checkouts without a confirmation step [\#84](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/84) ([seand7565](https://github.com/seand7565))
134
- - Replace order simulator with something simpler [\#82](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/82) ([seand7565](https://github.com/seand7565))
135
- - Cleanup [\#81](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/81) ([elia](https://github.com/elia))
136
- - Send line\_item and shipping promotions to PayPal [\#80](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/80) ([seand7565](https://github.com/seand7565))
137
- - Change outstanding\_balance to total in order total checker [\#79](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/79) ([seand7565](https://github.com/seand7565))
138
- - Add overlay to ease transition to confirmation page [\#78](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/78) ([seand7565](https://github.com/seand7565))
139
- - Default available\_to\_users to true [\#77](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/77) ([seand7565](https://github.com/seand7565))
140
- - Add info about PayPal Terminal to README [\#76](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/76) ([seand7565](https://github.com/seand7565))
141
- - Return a payment declined error on the frontend [\#74](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/74) ([seand7565](https://github.com/seand7565))
142
- - Only use the necessary data to let the spec pass [\#73](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/73) ([elia](https://github.com/elia))
143
- - Display capture\_id instead of order\_id to admin user [\#72](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/72) ([seand7565](https://github.com/seand7565))
144
- - Use options instead of preferences [\#67](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/67) ([seand7565](https://github.com/seand7565))
145
- - Update README to reflect new preferences [\#66](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/66) ([seand7565](https://github.com/seand7565))
146
- - Add version to cache\_key [\#65](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/65) ([seand7565](https://github.com/seand7565))
147
- - Include payment method information in pricing options cache key [\#62](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/62) ([seand7565](https://github.com/seand7565))
148
- - Only use available payment\_methods [\#61](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/61) ([seand7565](https://github.com/seand7565))
149
- - Explicitly require deface [\#60](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/60) ([elia](https://github.com/elia))
150
- - Verify email address is verified before allowing payment method to be available [\#59](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/59) ([seand7565](https://github.com/seand7565))
151
- - Use the ORB definition of lint-code [\#58](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/58) ([elia](https://github.com/elia))
152
- - Send amount of payment to PayPal on capture [\#56](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/56) ([seand7565](https://github.com/seand7565))
153
- - Verify amount to charge with order total [\#55](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/55) ([seand7565](https://github.com/seand7565))
154
- - Linting the project with rubocop [\#53](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/53) ([elia](https://github.com/elia))
155
- - Add PayPal Debug ID to log entries [\#52](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/52) ([seand7565](https://github.com/seand7565))
156
- - Fix PayPal request success message en.yml paths [\#51](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/51) ([seand7565](https://github.com/seand7565))
157
- - Add configuration options to SolidusPaypalCommercePlatform [\#50](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/50) ([seand7565](https://github.com/seand7565))
158
- - Add PayPal button to product page [\#45](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/45) ([seand7565](https://github.com/seand7565))
159
- - Add PayPal Button To Cart Page [\#43](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/43) ([seand7565](https://github.com/seand7565))
160
- - Add ability to change address on PayPal [\#42](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/42) ([seand7565](https://github.com/seand7565))
161
- - Add a basic codecov config to show commit status [\#41](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/41) ([elia](https://github.com/elia))
162
- - Add CI & Coverage badges to the readme [\#40](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/40) ([elia](https://github.com/elia))
163
- - Rely on sdk request classes [\#39](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/39) ([elia](https://github.com/elia))
164
- - Use "commit=false" in the JS SDK url when "confirm" step is present [\#33](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/33) ([elia](https://github.com/elia))
165
- - Renames: Gateway PaymentMethod / Requests Gateway [\#32](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/32) ([elia](https://github.com/elia))
166
- - Add PayPal Virtual Terminal notice to backend [\#25](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/25) ([seand7565](https://github.com/seand7565))
167
- - Add missing partials necessary for backend [\#24](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/24) ([seand7565](https://github.com/seand7565))
168
- - Add the ability to void authorized payments [\#23](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/23) ([seand7565](https://github.com/seand7565))
169
- - Fix order controller response [\#22](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/22) ([seand7565](https://github.com/seand7565))
170
- - Add refund ability to admin payment management [\#21](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/21) ([seand7565](https://github.com/seand7565))
171
- - Fixes and refactoring [\#20](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/20) ([elia](https://github.com/elia))
172
- - Add ability for admin users to customize paypal button [\#16](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/16) ([seand7565](https://github.com/seand7565))
173
- - Restore the generic bin/rails command [\#11](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/11) ([elia](https://github.com/elia))
174
- - Add PayPal buttons to frontend checkout flow [\#10](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/10) ([seand7565](https://github.com/seand7565))
175
- - Update readme to reflect onboarding and wizards 🧙 [\#4](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/4) ([seand7565](https://github.com/seand7565))
176
- - Add setup wizard for paypal commerce platform [\#3](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/3) ([seand7565](https://github.com/seand7565))
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
- gem 'solidus', github: 'solidusio/solidus', branch: branch
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['DB']
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