#dylan_code

1 messages ¡ Page 1 of 1 (latest)

burnt gazelleBOT
#

👋 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.

dreamy isle
#

hello! Are you only accepting Bancontact payments with Stripe? Or are you accepting other types of payment methods?

inner star
#

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");
                                                                                }
                                                                            }
                                                                        });
                                                                    });
dreamy isle
past thicketBOT
inner star
#

Thanks for your help @dreamy isle
I will check that