diff --git a/frontend/src/pages/Billing.vue b/frontend/src/pages/Billing.vue
index dd952ee7..a6e66f43 100644
--- a/frontend/src/pages/Billing.vue
+++ b/frontend/src/pages/Billing.vue
@@ -91,6 +91,16 @@
+
+
+ {{
+ __(
+ 'Please ensure that the billing name you enter is correct, as it will be used on your invoice.'
+ )
+ }}
+
@@ -104,16 +114,22 @@
-
+
changeCurrency(option)"
:label="__('Country')"
+ :required="true"
/>
(billingDetails.source = option)"
:label="__('Where did you hear about us?')"
+ :required="true"
/>
-
-
- {{
- __(
- 'Make sure to enter the correct billing name as the same will be used in your invoice.'
- )
- }}
-
+
+
+
+
+ {{
+ __('Please provide your consent to proceed with the payment')
+ }}
+
+
@@ -202,6 +237,7 @@ import { X } from 'lucide-vue-next'
const user = inject('$user')
const { brand } = sessionStore()
+const showConsentWarning = ref(false)
onMounted(() => {
const script = document.createElement('script')
@@ -296,6 +332,10 @@ const generatePaymentLink = () => {
if (!billingDetails.source) {
return __('Please let us know where you heard about us from.')
}
+ if (!billingDetails.member_consent) {
+ showConsentWarning.value = true
+ return __('Please provide your consent to proceed with the payment.')
+ }
return validateAddress()
},
onSuccess(data) {
diff --git a/lms/lms/payments.py b/lms/lms/payments.py
index e97b6834..8c2e1834 100644
--- a/lms/lms/payments.py
+++ b/lms/lms/payments.py
@@ -121,6 +121,7 @@ def record_payment(
"payment_for_document_type": doctype,
"payment_for_document": docname,
"payment_for_certificate": payment_for_certificate,
+ "member_consent": address.member_consent,
}
)
if coupon_code: