-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix master, import paypal-checkout-sdk #161
Fix master, import paypal-checkout-sdk #161
Conversation
0218046
to
5d0ffe0
Compare
@cpfergus1 thanks! Is this now compatible with Ruby 3 so? |
@kennyadsl All 83 examples are passing when testing with Ruby 3.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of comments, I would also suggest to move all the inherited requests under the solidus_paypal_commerce_platform
namespace and throw away the ones we don't use, so we won't need to keep them up to date in the future.
app/controllers/solidus_paypal_commerce_platform/orders_controller.rb
Outdated
Show resolved
Hide resolved
Master branch was failing because a unassociated user was attempting to access an order assigned to the example user. Signing in ensures that the correct user is accessing that order.
9027fc4
to
5907a26
Compare
I attempted namespacing but ended up getting different results when testing in the sandbox. I spent some time trying to discover the issue and worked with @kennyadsl. After some time, it was proposed to just release the fix without the namespace to get the fix in the codebase. We can revisit the namespacing at a later time |
c23cb1b
to
2e44b56
Compare
2e44b56
to
2d394de
Compare
app/controllers/solidus_paypal_commerce_platform/orders_controller.rb
Outdated
Show resolved
Hide resolved
4e4f313
to
b5c2110
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cpfergus1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a nit, mostly to avoid confusion for future readers, all good once that's fixed 👍
app/controllers/solidus_paypal_commerce_platform/orders_controller.rb
Outdated
Show resolved
Hide resolved
Paypal has opted to no longer support their sdk gem, this commit imports the current iteration of that gem within this library and will be maintained here.
squash on import
b5c2110
to
97b5c76
Compare
Description
Fixes failing specs on master and imports paypal-checkout-sdk which will no longer be maintained by PayPal.
Motivation and Context
We used to offer PayPal support while installing solidus until v3.2, that's because we wanted to support Ruby 3 but paypal-checkout-sdk is dependent on an older version of paypalhttp that doesn't support Ruby 3.
Upon further inspection the paypal-checkout-sdk is just a bunch of request-like objects that are to be used with paypalhttp, that makes them good candidates for taking them over and upgrading them to be compatible with both ruby 3 and the latest paypalhttp.
Now we would like to restore support by embedding the code we need from paypal-checkout-sdk into solidus_paypal_commerce_platform and directly depend on the latest version of paypalhttp.
How Has This Been Tested?
The current test suite covers the changes made in the PR
Types of changes
Checklist: