-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
9986ea9
to
9aa82a0
Compare
c940633
to
f06c4e4
Compare
@@ -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.
This comment was marked as resolved.
Sorry, something went wrong.
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 | ||
} | ||
|
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.
I believe this is repeated request_already_existing_challan
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.
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.
This comment was marked as resolved.
Sorry, something went wrong.
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.
This comment was marked as resolved.
Sorry, something went wrong.
</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.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
This comment was marked as resolved.
Sorry, something went wrong.
f06c4e4
to
c06e33d
Compare
c06e33d
to
dc91d18
Compare
Added the payment system, will update desciption soon