-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ webserver: payments-method RCP client and new one-time payments with payment-method #4979
✨ webserver: payments-method RCP client and new one-time payments with payment-method #4979
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4979 +/- ##
=========================================
+ Coverage 78.7% 81.4% +2.7%
=========================================
Files 1113 619 -494
Lines 46226 29731 -16495
Branches 722 195 -527
=========================================
- Hits 36403 24222 -12181
+ Misses 9664 5460 -4204
+ Partials 159 49 -110
Flags with carried forward coverage won't be shown. Click here to find out more.
|
services/web/server/src/simcore_service_webserver/payments/_onetime_api.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/payments/_onetime_api.py
Outdated
Show resolved
Hide resolved
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.
Looking good thanks 👍 (I would like to catch up sometimes in person about RPC methods and how/when to use them) Thanks!
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.
Please check code climate warnings. you have some assertions without #nosec
That was before. Those comments are fixed. |
Code Climate has analyzed commit 634f447 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
This PR completes the last connection missing between the
webserver/payments
plugin and thepayments
service.It adds the client-side of RPC API for payments-methods and mplements entrypoint for one-time-payment using given payment-method
api/rpc/_payment_methods
API in thepayments
serviceservices/webserver api version: 0.36.0 → 0.37.0
:init_payment_with_payment_method
: implements one-time payment using stored payment-methodpayWithPaymentMethod
PAYMENTS_FAKE_*
) is still available until payment-gateway dev service is available. This code is also reused to fake thepayments
RPC api for testing. SEEservices/web/server/tests/unit/with_dbs/03/wallets/payments/conftest.py::mock_rpc_payments_service_api
with_dbs/03/wallets/payments
Related issue/s
How to test
cd services/web/server make install-dev pytest -vv -k test_one_time_payment_with_payment_method tests/units
DevOps
Reminder, please ensure that
PAYMENTS_FAKE_COMPLETION=1
PAYMENTS_FAKE_COMPLETION=0