OXIESEC PANEL
- Current Dir:
/
/
home
/
u432548786
/
domains
/
it-tas.com
/
public_html
/
js
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/13/2025 03:36:42 PM
rwxr-xr-x
📄
bootstrap.min.js
69.03 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
custom-change-type.js
559 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
custom.min.js
4.65 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
function7b30.js
101.72 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
jquery.min.js
84.89 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
jqueryui
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
main.min.js
57.53 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
owl.carousel.js
22.38 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
payment.js
1.25 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
select2.min.js
66.16 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
Editing: payment.js
Close
// set your stripe publishable key Stripe.setPublishableKey('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'); $(document).ready(function() { $("#paymentForm").submit(function(event) { $('#makePayment').attr("disabled", "disabled"); // create stripe token to make payment Stripe.createToken({ number: $('#cardNumber').val(), cvc: $('#cardCVC').val(), exp_month: $('#cardExpMonth').val(), exp_year: $('#cardExpYear').val() }, handleStripeResponse); return false; }); }); // handle the response from stripe function handleStripeResponse(status, response) { console.log(JSON.stringify(response)); if (response.error) { $('#makePayment').removeAttr("disabled"); $(".paymentErrors").html(response.error.message); } else { var payForm = $("#paymentForm"); //get stripe token id from response var stripeToken = response['id']; alert(stripeToken); //set the token into the form hidden input to make payment payForm.append("<input type='hidden' name='stripeToken' value='" + stripeToken + "' />"); payForm.get(0).submit(); } }