Ignorar la carpeta venv en Git

This commit is contained in:
root
2024-12-29 03:11:45 +05:30
parent a77cdf96b9
commit e9de3248c0
413 changed files with 32683 additions and 41 deletions
@@ -0,0 +1,37 @@
$(function(){
$('.transfer-button').on('click', function(e) {
e.preventDefault();
$("#transfer-character-response").empty();
var button = $(this);
var originalText = button.text();
var data = $("#nw-transfer-character-form").serialize();
button.text("Procesando pago...");
button.prop("disabled", true);
$.ajax({
type: 'POST',
url: '', // URL de transferencia
data: data,
dataType: 'json',
success: function(response) {
if (response.success) {
var stripe = Stripe(response.stripe_public_key);
stripe.redirectToCheckout({
sessionId: response.session_id
});
} else {
$("#transfer-character-response").append(response.message).hide().slideDown();
button.text(originalText);
button.prop("disabled", false);
}
},
error: function() {
$("#transfer-character-response").append('<span class="red-form-response">Error inesperado. Intente más tarde.</span>').hide().slideDown();
button.text(originalText);
button.prop("disabled", false);
}
});
});
});