Explorer
home
/
zoteqbgb
/
public_html
/
paymentGateways
/
stripe
Location:
/home/zoteqbgb/public_html/paymentGateways/stripe
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: stripe.js
if (stripeKey) { "use strict"; let stripe = Stripe(stripeKey); let elements = stripe.elements(); let style = { base: { fontSize: '16px', color: '#32325d', border: '1px solid red', }, }; let card = elements.create('card', {style: style}); card.mount('#card-element'); function stripe_payment() { $('#payment_method').parent().removeClass('has-error'); stripe.createToken(card).then(function (result) { if (result.error) { let errorElement = document.getElementById('card-errors'); errorElement.textContent = result.error.message; } else { stripeTokenHandler(result.token); } }); } function stripeTokenHandler(token) { let form = document.getElementById('paymentForm'); let hiddenInput = document.createElement('input'); hiddenInput.setAttribute('type', 'hidden'); hiddenInput.setAttribute('name', 'stripeToken'); hiddenInput.setAttribute('value', token.id); form.appendChild(hiddenInput); form.submit(); } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
399555
-
0755
2025-11-15 10:39
ðï¸
Rename
index.php
0 bytes
0644
2025-11-15 10:39
âï¸
ðï¸
Rename
stripe.js
1,213 bytes
0644
2025-04-25 02:11
âï¸
ðï¸
Rename
Chang
Apply