-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Html #203
Comments
<title>Member Payment</title>
Enter Unique CodeUnique Code: Submit
|
Okay, but I don't know which unique code are you toking about.
…On Wed., 6 Dec. 2023, 18:08 Lukziz, ***@***.***> wrote:
<title>Member Payment</title> Enter Unique Code Unique Code: Submit
<div id="paymentForm" style="display: none;">
<h1>Payment</h1>
<!-- Add your payment form fields here -->
<button type="submit" id="submitPayment">Submit Payment</button>
</div>
<script>
const otpForm = document.getElementById('otpForm');
const paymentForm = document.getElementById('paymentForm');
otpForm.addEventListener('submit', (event) => {
event.preventDefault();
const otp = document.getElementById('otp').value;
// Verify the OTP with your server
fetch('/verify_otp', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ otp: otp })
})
.then((response) => {
if (response.ok) {
paymentForm.style.display = 'block';
} else {
alert('Invalid OTP. Please try again.');
}
})
.catch((error) => {
console.error('Error:', error);
});
});
const submitPayment = document.getElementById('submitPayment');
submitPayment.addEventListener('click', (event) => {
// Process the payment
// You can add your own payment processing logic here
});
</script>
``` ```
—
Reply to this email directly, view it on GitHub
<#203 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4V4SMTY42OZGAHELURF5VDYICQ7JAVCNFSM6AAAAAATPAZV5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGMYDOMZZGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: <calistus-igwilo/nitda-blockchain-scholarship/issues/203/1843307393@
github.com>
|
I'm sorry, but without a PC, I'm not able to accomplish this.
…On Wed., 6 Dec. 2023, 18:08 Lukziz, ***@***.***> wrote:
<title>Member Payment</title> Enter Unique Code Unique Code: Submit
<div id="paymentForm" style="display: none;">
<h1>Payment</h1>
<!-- Add your payment form fields here -->
<button type="submit" id="submitPayment">Submit Payment</button>
</div>
<script>
const otpForm = document.getElementById('otpForm');
const paymentForm = document.getElementById('paymentForm');
otpForm.addEventListener('submit', (event) => {
event.preventDefault();
const otp = document.getElementById('otp').value;
// Verify the OTP with your server
fetch('/verify_otp', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ otp: otp })
})
.then((response) => {
if (response.ok) {
paymentForm.style.display = 'block';
} else {
alert('Invalid OTP. Please try again.');
}
})
.catch((error) => {
console.error('Error:', error);
});
});
const submitPayment = document.getElementById('submitPayment');
submitPayment.addEventListener('click', (event) => {
// Process the payment
// You can add your own payment processing logic here
});
</script>
``` ```
—
Reply to this email directly, view it on GitHub
<#203 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4V4SMTY42OZGAHELURF5VDYICQ7JAVCNFSM6AAAAAATPAZV5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGMYDOMZZGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: <calistus-igwilo/nitda-blockchain-scholarship/issues/203/1843307393@
github.com>
|
Ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HTML
The text was updated successfully, but these errors were encountered: