#meesterdjango_api
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/1260257524335247500
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
To be clarify : im working in the dev env. Wanted to test before pushing because the webshop does have alot of traffic and sales.
Hi there ๐ how are you collecting the card details from your customers?
main issue im having is after selecting a method on checkout_page.html (django-template) the user is asked to fill in some xtra data for iDEAL or card payments. When the user fills these in and submits the form the checkoutpage(view) form_valid checks if the post is valid and redirects the user to the desired method_setup.html (here the payment will be confirmed and the user gets redirected to payment page.) after succesvol payment they get redirected to checkout_success_page.html.
I am collecting them in input field that is only visable if the corresponding radio button is selected.
if you want to i could provide you a snippet of my js in the templates (frontend) and the server side view (backend)
Where im bumping into a wall is after i selected a radio (VISA) and fill out card number , exp_month, exp_year, cvc and zip ik can submit
Do you have a screenshot of this? Offhand this sounds like our Payment Element, but it's hard to say for sure.
but then im missing some data on the setup page...
yes i use payment element ill send a screen w8
Gotcha, for Payment Element integrations, you should be using confirmPayment rather than our payment-method-speific confirmation methods:
https://docs.stripe.com/js/payment_intents/confirm_payment
You'll pass the Elements instance to that confirmation request, so it can pull the necessary details out of the Payment Element.
ok lets give it a go ! thanks ill lets you know any specifics
@near forge hello, I'm stepping in now, any immediate questions you have?
not really toby made a very clear point , since im using the payment_element i shouldnt be using confirmCardPayment. Im rewriting both checkout_page.html and card_setup.html to see if this resolves the issue