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
feat: Implemented routes for creation & charging(invoice) through PayPal #6296
Conversation
c2449ea
to
fec1d40
Compare
37c18d6
to
14a4223
Compare
Codecov Report
@@ Coverage Diff @@
## development #6296 +/- ##
==============================================
Coverage ? 65.33%
==============================================
Files ? 287
Lines ? 14765
Branches ? 0
==============================================
Hits ? 9646
Misses ? 5119
Partials ? 0
Continue to review full report at Codecov.
|
event_invoice.status = 'completed' | ||
event_invoice.transaction_id = paypal_payment_id | ||
event_invoice.completed_at = datetime.utcnow() | ||
save_to_db(event_invoice) |
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.
undefined name 'save_to_db'
event_invoice = safe_query(db, EventInvoice, 'identifier', invoice_identifier, 'identifier') | ||
# save the paypal payment_id with the order | ||
event_invoice.paypal_token = paypal_payment_id | ||
save_to_db(event_invoice) |
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.
undefined name 'save_to_db'
506a1a3
to
548f148
Compare
548f148
to
b8d0fa4
Compare
fbd04dd
to
231ca61
Compare
29581c6
to
5fb14dd
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.
Please see if 'save_to_db' error is resolved, otherwise workflow looks Okay to me
5fb14dd
to
3470ba1
Compare
@uds5501 Yes, I've resolved the error. Travis timed out previously. Please review now. |
@iamareebjamal I've tested this properly. This is ready for a review. |
Fixes #6245
https://drive.google.com/file/d/14Je8183BW4wgToQJCihp7C_k0MScbBjA/view?usp=sharing
Short description of what this resolves:
Implements create payment & charge routes for authorization of event invoice payments.
Related FE PR:fossasia/open-event-frontend#3351
Changes proposed in this pull request:
Checklist
development
branch.