#dylan_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1256148615802650738
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hello! Are you only accepting Bancontact payments with Stripe? Or are you accepting other types of payment methods?
Hello @dreamy isle !
No we accept Visa too by doing approximately the same but it doesn't use the createSource methode of Stripe:
var stripe = Stripe('{{ StripePublicKey }}');
$("#BtnEshopPaymentByVisa").on("click",function() {
$.ajax({
url: "/mod/eshop/process/createorder" + "?csrf_token=" + $("meta[name='csrf_token_global']").attr('content'),
contentType: "application/json; charset=utf-8",
success: function(Data) {
if(Data.indexOf("###OK###") > -1) {
$(".stripe-hc").trigger("click");
}
}
});
});
I think at this point, you may be better off rebuilding from scratch. Maybe try taking a look at https://docs.stripe.com/payments/accept-a-payment as a start for how to accept payments. I'd recommend looking at the Checkout flow which is simpler to implement
Thanks for your help @dreamy isle
I will check that