Skip to content
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

LUMSX Payment System - Challan Voucher #1

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

mumerfarooq000
Copy link

Added the payment system, will update desciption soon

@mumerfarooq000 mumerfarooq000 self-assigned this Jan 5, 2021
@mumerfarooq000 mumerfarooq000 force-pushed the umerF/lumsx-57/payment-system branch 5 times, most recently from 9986ea9 to 9aa82a0 Compare January 12, 2021 08:53
@mumerfarooq000 mumerfarooq000 force-pushed the umerF/lumsx-57/payment-system branch 3 times, most recently from c940633 to f06c4e4 Compare January 15, 2021 06:56
@@ -67,6 +67,7 @@ def is_valid_site_course(course_id, request):
)
# We assume that the "short_code" value of ECOM site partner will always
# be the same as "short_name" value of its related edx organization in LMS
return True
if edx_org_short_name and course_key.org == edx_org_short_name and course_key.org == partner_short_code:

This comment was marked as resolved.

Comment on lines 139 to 143
if response.status_code == 200:
voucher_details = response.json()
url_for_online_payment = voucher_details.get('data', {}).get("url_for_online_payment")
url_for_download_voucher = voucher_details.get('data', {}).get("url_for_download_voucher")

context = {
'configuration_helpers': configuration_helpers,
'url_for_online_payment': url_for_online_payment,
'url_for_download_voucher': url_for_download_voucher,
'items_list': items,
"name": request.user.username,
"email": request.user.email,
"order_id": request.basket.order_number,
"user": request.user,
"lms_dashboard_url": get_lms_dashboard_url,
"is_paid": False,
"support_email": request.site.siteconfiguration.payment_support_email
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is repeated request_already_existing_challan

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont get what you trying to say here?

return Basket.objects.filter(owner_id=request.user, lines__product_id__in=course_ids).first()

def is_basket_and_challan_exists(self, request):
if BasketChallanVoucher.objects.filter(basket=self.get_existing_basket(request)).exists():

This comment was marked as resolved.

Comment on lines 104 to 107
msg = 'user is anonymous cannot proceed to checkout page so redirecting to login'
if not url:
msg = 'Site configuration in ecommerce does not include payment API url'

This comment was marked as resolved.

</nav>
<div class="container">
<div class="alert alert-warning" style="max-width: none;">
Payment clearance to the course might take upto 45 minutes.

This comment was marked as resolved.

This comment was marked as resolved.

A confirmation email will be sent to you when you have made the payment and been enrolled in the course.
Please follow the steps in this email to access the course. </br></br>
Alternatively, after making the payment you go to your Dashboard to view the course. Please note that it
may take up to 45 minutes for your course to be made available to you. Kindly contact

This comment was marked as resolved.

@mumerfarooq000 mumerfarooq000 merged commit 23b995d into develop Jan 15, 2021
@mumerfarooq000 mumerfarooq000 deleted the umerF/lumsx-57/payment-system branch January 15, 2021 13:58
@mumerfarooq000 mumerfarooq000 mentioned this pull request Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants