-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: make billing info mandatory for paid orders #6192
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: make billing info mandatory for paid orders #6192
Conversation
Codecov Report
@@ Coverage Diff @@
## development #6192 +/- ##
===============================================
- Coverage 65.29% 65.27% -0.03%
===============================================
Files 287 287
Lines 14704 14711 +7
===============================================
+ Hits 9601 9602 +1
- Misses 5103 5109 +6
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## development #6192 +/- ##
===============================================
- Coverage 66% 65.96% -0.04%
===============================================
Files 288 288
Lines 14521 14529 +8
===============================================
Hits 9584 9584
- Misses 4937 4945 +8
Continue to review full report at Codecov.
|
4ba2903 to
d58a0bf
Compare
|
I think you made a method which checks the payment mode, use that. If there's no method, create one to avoid repetition |
|
Yeah that function was to check if any of the payment option is enabled in |
|
@iamareebjamal should I add a new function just to check if payment options are from stripe, omise, alipay or paypal? |
|
I see repeated code. There should be one function called from 2 places instead of repetition |
d58a0bf to
ff230ee
Compare
ff230ee to
27cb2f5
Compare
|
@iamareebjamal made a function |
|
Have a peer review |
|
@mrsaicharan1 @uds5501 @kushthedude please review |
|
@shreyanshdwivedi There is one hound violation. |
b0a8678 to
b0ba2bc
Compare
|
@uds5501 @mrsaicharan1 @kushthedude please review |
mrsaicharan1
left a comment
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.
LGTM
prateekj117
left a comment
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.
LGTM
e0815e4
b0ba2bc to
e0815e4
Compare
|
@iamareebjamal please review. Updated the exception |
|
@CosmicCoder96 I have a query. The issue for which I opened this PR doesn't state whether the billing Info is required for only orders paid via our platform or even for offline paid event. Do you want it for both online as well as offline paid events? |
|
Keep it on hold till @CosmicCoder96 replies to #6192 (comment) |
e0815e4 to
c2dc962
Compare
|
@iamareebjamal I've just updated the check to include all type of paid orders - |
c2dc962 to
be530e9
Compare
be530e9 to
2a98f9b
Compare
Fixes #6137
Short description of what this resolves:
Make billing information mandatory for paid orders
Changes proposed in this pull request:
before_create_objectandbefore_update_objectinapi/orders.pyChecklist
developmentbranch.