solidus_paypal_commerce_platform 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +23 -4
  3. data/.rubocop.yml +2 -1
  4. data/CHANGELOG.md +159 -145
  5. data/Gemfile +14 -1
  6. data/README.md +2 -2
  7. data/app/controllers/solidus_paypal_commerce_platform/orders_controller.rb +1 -1
  8. data/app/models/solidus_paypal_commerce_platform/gateway.rb +0 -2
  9. data/app/models/solidus_paypal_commerce_platform/payment_method.rb +1 -1
  10. data/app/models/solidus_paypal_commerce_platform/payment_source.rb +1 -1
  11. data/app/models/solidus_paypal_commerce_platform/paypal_order.rb +6 -21
  12. data/lib/paypal/access_token.rb +22 -0
  13. data/lib/paypal/lib.rb +19 -0
  14. data/lib/paypal/paypal_checkout_sdk/orders/orders_authorize_request.rb +44 -0
  15. data/lib/paypal/paypal_checkout_sdk/orders/orders_capture_request.rb +42 -0
  16. data/lib/paypal/paypal_checkout_sdk/orders/orders_create_request.rb +36 -0
  17. data/lib/paypal/paypal_checkout_sdk/orders/orders_get_request.rb +26 -0
  18. data/lib/paypal/paypal_checkout_sdk/orders/orders_patch_request.rb +77 -0
  19. data/lib/paypal/paypal_checkout_sdk/orders/orders_validate_request.rb +34 -0
  20. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_capture_request.rb +38 -0
  21. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_get_request.rb +26 -0
  22. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_reauthorize_request.rb +45 -0
  23. data/lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb +27 -0
  24. data/lib/paypal/paypal_checkout_sdk/payments/captures_get_request.rb +26 -0
  25. data/lib/paypal/paypal_checkout_sdk/payments/captures_refund_request.rb +40 -0
  26. data/lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb +26 -0
  27. data/lib/paypal/paypal_environment.rb +39 -0
  28. data/lib/paypal/paypal_http_client.rb +56 -0
  29. data/lib/paypal/token_requests.rb +42 -0
  30. data/lib/solidus_paypal_commerce_platform/access_token_authorization_request.rb +1 -1
  31. data/lib/solidus_paypal_commerce_platform/client.rb +1 -1
  32. data/lib/solidus_paypal_commerce_platform/configuration.rb +1 -1
  33. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_authorize_request.rb +48 -0
  34. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_capture_request.rb +46 -0
  35. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb +80 -0
  36. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb +36 -0
  37. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/payments/authorizations_reauthorize_request.rb +50 -0
  38. data/lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/payments/captures_refund_request.rb +43 -0
  39. data/lib/solidus_paypal_commerce_platform/version.rb +1 -1
  40. data/lib/solidus_paypal_commerce_platform.rb +1 -0
  41. data/solidus_paypal_commerce_platform.gemspec +8 -7
  42. metadata +54 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2d50512fee899487beba77fee503dd0dfe94f4b4b6dc842fa4598c6fb243623
4
- data.tar.gz: '0444833a634b9afadcda2125d9b965964832e31fcf6365f013121ad6a4b42945'
3
+ metadata.gz: bc92be06606fdc11bd65cb76e0121637054956852853f533dc22a0c04234bf31
4
+ data.tar.gz: 5e6eb3333ceb6590c711a572cce20a49c88ea313d6547612e1ae490766219454
5
5
  SHA512:
6
- metadata.gz: d41a23f1448ee2633da0af85607432a657bfc3853c58b4a4ed8a65226023c10f2e0ff2eaa9b021a08a108e4f7dd5a938fe66cb1e23d17cc8e35f1a23adbab231
7
- data.tar.gz: fb6dc9b34cc7363cc028925601bd10448a9c78ee1588fcc4483a8f4d26abd7db9a30e7329da7c89df5bc28e02187c42fa20826d2825e2185d99e92e40ab69954
6
+ metadata.gz: '079cdd57b4e2dc48a17b79e15711b1182d31de5e12b3aa7087590df33ccd6686197c65c7636d48a57213d4fa28cff0c37cd93117eacba1b99818eafbb0ef13c1'
7
+ data.tar.gz: a66e1b6cfa262c523ab8b95d47bd975a96080b5772f8a032cae2d9fdc449f5723261409b552da351fa48def0b3a35e3049c9f50bf2224abfbe6f18f4efb2cc8b
data/.circleci/config.yml CHANGED
@@ -11,15 +11,32 @@ orbs:
11
11
 
12
12
  jobs:
13
13
  run-specs-with-postgres:
14
- executor: solidusio_extensions/postgres
14
+ executor:
15
+ name: solidusio_extensions/postgres
16
+ ruby_version: '3.1'
15
17
  steps:
16
- - browser-tools/install-browser-tools
18
+ - checkout
19
+ - browser-tools/install-chrome
17
20
  - solidusio_extensions/run-tests
21
+
18
22
  run-specs-with-mysql:
19
- executor: solidusio_extensions/mysql
23
+ executor:
24
+ name: solidusio_extensions/mysql
25
+ ruby_version: '3.0'
20
26
  steps:
21
- - browser-tools/install-browser-tools
27
+ - checkout
28
+ - browser-tools/install-chrome
22
29
  - solidusio_extensions/run-tests
30
+
31
+ run-specs-with-sqlite:
32
+ executor:
33
+ name: solidusio_extensions/sqlite
34
+ ruby_version: '2.7'
35
+ steps:
36
+ - checkout
37
+ - browser-tools/install-chrome
38
+ - solidusio_extensions/run-tests
39
+
23
40
  lint-code:
24
41
  executor: solidusio_extensions/sqlite-memory
25
42
  steps:
@@ -30,6 +47,7 @@ workflows:
30
47
  jobs:
31
48
  - run-specs-with-postgres
32
49
  - run-specs-with-mysql
50
+ - run-specs-with-sqlite
33
51
  - lint-code
34
52
 
35
53
  "Weekly run specs against master":
@@ -43,3 +61,4 @@ workflows:
43
61
  jobs:
44
62
  - run-specs-with-postgres
45
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/**/*
data/CHANGELOG.md CHANGED
@@ -1,224 +1,238 @@
1
1
  # Changelog
2
2
 
3
- ## [v0.4.0](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/tree/v0.4.0) (2022-06-02)
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.3.2...v0.4.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)
6
19
 
7
20
  **Closed issues:**
8
21
 
9
- - Gem has RuboCop warnings [\#144](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/144)
10
- - Silent Failure In JS [\#130](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/130)
11
- - Not Applying Sales Tax [\#126](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/126)
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)
12
25
 
13
26
  **Merged pull requests:**
14
27
 
15
- - Fix Rails 7 autoloading issues with SolidusPaypalCommercePlatform [\#156](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/156) ([gsmendoza](https://github.com/gsmendoza))
16
- - Block \#capture on Pending Payments" [\#155](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/155) ([Naokimi](https://github.com/Naokimi))
17
- - Block \#capture on PayPal PENDING Payments [\#154](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/154) ([Naokimi](https://github.com/Naokimi))
18
- - Change Venmo integration to use Venmo standalone [\#151](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/151) ([RyanofWoods](https://github.com/RyanofWoods))
19
- - Allow enable\_venmo preference to have default Venmo behaviour [\#148](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/148) ([RyanofWoods](https://github.com/RyanofWoods))
20
- - Fix RuboCop warnings [\#147](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/147) ([RyanofWoods](https://github.com/RyanofWoods))
21
- - Revert "Allow Ruby 3" [\#146](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/146) ([RyanofWoods](https://github.com/RyanofWoods))
22
- - Add Venmo as payment option [\#138](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/138) ([RyanofWoods](https://github.com/RyanofWoods))
23
- - Wizard\#logo use `image_path` over `image_url`. [\#131](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/131) ([essn](https://github.com/essn))
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))
24
38
 
25
- ## [v0.3.2](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/tree/v0.3.2) (2021-05-11)
39
+ ## [v0.3.2](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.3.2) (2021-05-11)
26
40
 
27
- [Full Changelog](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/compare/v0.3.1...v0.3.2)
41
+ [Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.3.1...v0.3.2)
28
42
 
29
43
  **Closed issues:**
30
44
 
31
- - Unable To Cancel An Order [\#120](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/120)
45
+ - Unable To Cancel An Order [\#120](https://github.com/solidusio/solidus_paypal_commerce_platform/issues/120)
32
46
 
33
47
  **Merged pull requests:**
34
48
 
35
- - Update solidus using solidus\_dev\_support [\#124](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/124) ([DanielePalombo](https://github.com/DanielePalombo))
36
- - Add NO\_SHIPPING to shipping preference [\#123](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/123) ([DanielePalombo](https://github.com/DanielePalombo))
37
- - Support solidus 3.0 [\#122](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/122) ([DanielePalombo](https://github.com/DanielePalombo))
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))
38
52
 
39
- ## [v0.3.1](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/tree/v0.3.1) (2021-04-20)
53
+ ## [v0.3.1](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.3.1) (2021-04-20)
40
54
 
41
- [Full Changelog](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/compare/v0.3.0...v0.3.1)
55
+ [Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.3.0...v0.3.1)
42
56
 
43
57
  **Merged pull requests:**
44
58
 
45
- - Allow Solidus 3 [\#121](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/121) ([kennyadsl](https://github.com/kennyadsl))
59
+ - Allow Solidus 3 [\#121](https://github.com/solidusio/solidus_paypal_commerce_platform/pull/121) ([kennyadsl](https://github.com/kennyadsl))
46
60
 
47
- ## [v0.3.0](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/tree/v0.3.0) (2021-03-16)
61
+ ## [v0.3.0](https://github.com/solidusio/solidus_paypal_commerce_platform/tree/v0.3.0) (2021-03-16)
48
62
 
49
- [Full Changelog](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/compare/v0.2.2...v0.3.0)
63
+ [Full Changelog](https://github.com/solidusio/solidus_paypal_commerce_platform/compare/v0.2.2...v0.3.0)
50
64
 
51
65
  **Closed issues:**
52
66
 
53
- - 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)
54
68
 
55
69
  **Merged pull requests:**
56
70
 
57
- - Use new factories loading method [\#118](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/118) ([kennyadsl](https://github.com/kennyadsl))
58
- - 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))
59
73
 
60
- ## [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)
61
75
 
62
- [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)
63
77
 
64
78
  **Implemented enhancements:**
65
79
 
66
- - Make the PayPal messaging component a bit more modular [\#112](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/112)
67
- - 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)
68
82
 
69
83
  **Closed issues:**
70
84
 
71
- - 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)
72
86
 
73
87
  **Merged pull requests:**
74
88
 
75
- - Relax SolidusWebhooks dependency [\#114](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/114) ([kennyadsl](https://github.com/kennyadsl))
76
- - 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))
77
91
 
78
- ## [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)
79
93
 
80
- [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)
81
95
 
82
96
  **Closed issues:**
83
97
 
84
- - There was a problem connecting with paypal. [\#107](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/107)
85
- - 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)
86
100
 
87
101
  **Merged pull requests:**
88
102
 
89
- - Move and rename address decorator [\#111](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/111) ([seand7565](https://github.com/seand7565))
90
- - 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))
91
- - Add currency to PayPal SDK URL [\#108](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/108) ([seand7565](https://github.com/seand7565))
92
- - 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))
93
- - 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))
94
108
 
95
- ## [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)
96
110
 
97
- [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)
98
112
 
99
113
  **Closed issues:**
100
114
 
101
- - README lists two different types of PayPal credentials [\#97](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/97)
102
- - `paypal_email_confirmed` is not an actual preference [\#96](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/96)
103
- - 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)
104
118
 
105
119
  **Merged pull requests:**
106
120
 
107
- - Add PayPal messaging component [\#102](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/102) ([seand7565](https://github.com/seand7565))
108
- - 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))
109
- - 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))
110
- - Remove incorrect/unclear info from README [\#98](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/98) ([seand7565](https://github.com/seand7565))
111
- - 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))
112
- - Add skip migration option to installer [\#94](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/94) ([seand7565](https://github.com/seand7565))
113
- - 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))
114
128
 
115
- ## [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)
116
130
 
117
- [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)
118
132
 
119
133
  **Merged pull requests:**
120
134
 
121
- - Temporarily switch from apparition to cuprite [\#92](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/92) ([elia](https://github.com/elia))
122
- - 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))
123
- - 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))
124
- - 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))
125
139
 
126
- ## [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)
127
141
 
128
- [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)
129
143
 
130
144
  **Implemented enhancements:**
131
145
 
132
- - Frontend users should be able to check out using PayPal [\#6](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/6)
133
- - 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)
134
- - Webhooks [\#83](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/83) ([elia](https://github.com/elia))
135
- - Display paypal email to customer on confirmation [\#54](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/54) ([seand7565](https://github.com/seand7565))
136
- - 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))
137
- - 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))
138
152
 
139
153
  **Fixed bugs:**
140
154
 
141
- - Users can check out with invalid payment [\#19](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/19)
142
- - 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))
143
- - Correctly communicate errors when updating shipping rates [\#86](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/86) ([elia](https://github.com/elia))
144
- - 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))
145
159
 
146
160
  **Closed issues:**
147
161
 
148
- - Add something to the README about backend payments [\#75](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/75)
149
- - Explore enabling the payment method by default [\#71](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/71)
150
- - Explore subscribing to webhooks [\#70](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/70)
151
- - We're using the wrong ID for paypal\_order\_id [\#69](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/69)
152
- - Handle instrument declined errors [\#68](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/68)
153
- - Extend lightbox during customer payment [\#63](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/63)
154
- - Add this extension to demo store for integration team walkthrough [\#49](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/49)
155
- - Store PayPal Debug ID [\#48](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/48)
156
- - PayPal email address needs to be included on the confirm step [\#47](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/47)
157
- - Digital goods should be set as not requiring shipment [\#46](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/46)
158
- - Allow checkout on product/cart page to complete the order [\#44](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/44)
159
- - PayPal uses different states than Solidus for some countries [\#38](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/38)
160
- - Validate amount charged with PayPal [\#37](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/37)
161
- - Allow order simulator to be a configurable class [\#36](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/36)
162
- - Admin users have the option to edit payment amount [\#29](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/29)
163
- - Add PayPal button to product page [\#27](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/27)
164
- - Add PayPal button to cart page [\#26](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/26)
165
- - Add `commit=false` to javascript SDK URL [\#18](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/18)
166
- - 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)
167
- - Backend users should be able to checkout & admin payments [\#15](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/15)
168
- - Change static sandbox URL and objects to dynamic [\#14](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/14)
169
- - PayPal response address change [\#13](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/13)
170
- - Ensure the email is verified before activating the payment method [\#9](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/9)
171
- - Add a URL generator for the PayPal JS SDK [\#8](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/issues/8)
172
- - 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)
173
187
 
174
188
  **Merged pull requests:**
175
189
 
176
- - Use live partner ids [\#85](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/85) ([elia](https://github.com/elia))
177
- - 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))
178
- - Replace order simulator with something simpler [\#82](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/82) ([seand7565](https://github.com/seand7565))
179
- - Cleanup [\#81](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/81) ([elia](https://github.com/elia))
180
- - 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))
181
- - 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))
182
- - 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))
183
- - Default available\_to\_users to true [\#77](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/77) ([seand7565](https://github.com/seand7565))
184
- - Add info about PayPal Terminal to README [\#76](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/76) ([seand7565](https://github.com/seand7565))
185
- - 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))
186
- - 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))
187
- - 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))
188
- - Use options instead of preferences [\#67](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/67) ([seand7565](https://github.com/seand7565))
189
- - Update README to reflect new preferences [\#66](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/66) ([seand7565](https://github.com/seand7565))
190
- - Add version to cache\_key [\#65](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/65) ([seand7565](https://github.com/seand7565))
191
- - 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))
192
- - Only use available payment\_methods [\#61](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/61) ([seand7565](https://github.com/seand7565))
193
- - Explicitly require deface [\#60](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/60) ([elia](https://github.com/elia))
194
- - 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))
195
- - Use the ORB definition of lint-code [\#58](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/58) ([elia](https://github.com/elia))
196
- - 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))
197
- - Verify amount to charge with order total [\#55](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/55) ([seand7565](https://github.com/seand7565))
198
- - Linting the project with rubocop [\#53](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/53) ([elia](https://github.com/elia))
199
- - Add PayPal Debug ID to log entries [\#52](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/52) ([seand7565](https://github.com/seand7565))
200
- - 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))
201
- - Add configuration options to SolidusPaypalCommercePlatform [\#50](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/50) ([seand7565](https://github.com/seand7565))
202
- - Add PayPal button to product page [\#45](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/45) ([seand7565](https://github.com/seand7565))
203
- - Add PayPal Button To Cart Page [\#43](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/43) ([seand7565](https://github.com/seand7565))
204
- - Add ability to change address on PayPal [\#42](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/42) ([seand7565](https://github.com/seand7565))
205
- - 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))
206
- - Add CI & Coverage badges to the readme [\#40](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/40) ([elia](https://github.com/elia))
207
- - Rely on sdk request classes [\#39](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/39) ([elia](https://github.com/elia))
208
- - 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))
209
- - Renames: Gateway → PaymentMethod / Requests → Gateway [\#32](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/32) ([elia](https://github.com/elia))
210
- - Add PayPal Virtual Terminal notice to backend [\#25](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/25) ([seand7565](https://github.com/seand7565))
211
- - Add missing partials necessary for backend [\#24](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/24) ([seand7565](https://github.com/seand7565))
212
- - Add the ability to void authorized payments [\#23](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/23) ([seand7565](https://github.com/seand7565))
213
- - Fix order controller response [\#22](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/22) ([seand7565](https://github.com/seand7565))
214
- - Add refund ability to admin payment management [\#21](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/21) ([seand7565](https://github.com/seand7565))
215
- - Fixes and refactoring [\#20](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/20) ([elia](https://github.com/elia))
216
- - 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))
217
- - Restore the generic bin/rails command [\#11](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/11) ([elia](https://github.com/elia))
218
- - Add PayPal buttons to frontend checkout flow [\#10](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/10) ([seand7565](https://github.com/seand7565))
219
- - Update readme to reflect onboarding and wizards 🧙 [\#4](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/4) ([seand7565](https://github.com/seand7565))
220
- - Add setup wizard for paypal commerce platform [\#3](https://github.com/solidusio-contrib/solidus_paypal_commerce_platform/pull/3) ([seand7565](https://github.com/seand7565))
221
- - 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))
222
236
 
223
237
 
224
238
 
data/Gemfile CHANGED
@@ -4,7 +4,13 @@ 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.
@@ -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
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Solidus Paypal Commerce Platform
2
2
 
3
- [![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_paypal_commerce_platform.svg?style=shield)](https://circleci.com/gh/solidusio-contrib/solidus_paypal_commerce_platform)
4
- [![codecov](https://codecov.io/gh/solidusio-contrib/solidus_paypal_commerce_platform/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio-contrib/solidus_paypal_commerce_platform)
3
+ [![CircleCI](https://circleci.com/gh/solidusio/solidus_paypal_commerce_platform.svg?style=shield)](https://circleci.com/gh/solidusio/solidus_paypal_commerce_platform)
4
+ [![codecov](https://codecov.io/gh/solidusio/solidus_paypal_commerce_platform/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio/solidus_paypal_commerce_platform)
5
5
 
6
6
  The official PayPal integration of Solidus.
7
7
 
@@ -10,7 +10,7 @@ module SolidusPaypalCommercePlatform
10
10
  authorize! :create, ::Spree::Order
11
11
 
12
12
  @order = ::Spree::Order.create!(
13
- user: try_spree_current_user,
13
+ user: current_api_user,
14
14
  store: current_store,
15
15
  currency: current_pricing_options.currency
16
16
  )
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'paypal-checkout-sdk'
4
-
5
3
  module SolidusPaypalCommercePlatform
6
4
  class Gateway
7
5
  include PayPalCheckoutSdk::Orders
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusPaypalCommercePlatform
4
- class PaymentMethod < SolidusSupport.payment_method_parent_class
4
+ class PaymentMethod < ::Spree::PaymentMethod
5
5
  include SolidusPaypalCommercePlatform::ButtonOptionsHelper
6
6
  preference :client_id, :string
7
7
  preference :client_secret, :string
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusPaypalCommercePlatform
4
- class PaymentSource < SolidusSupport.payment_source_parent_class
4
+ class PaymentSource < ::Spree::PaymentSource
5
5
  self.table_name = "paypal_commerce_platform_sources"
6
6
  enum paypal_funding_source: {
7
7
  applepay: 0, bancontact: 1, blik: 2, boleto: 3, card: 4, credit: 5, eps: 6, giropay: 7, ideal: 8,