#meesterdjango_api

1 messages ยท Page 1 of 1 (latest)

blissful kestrelBOT
#

๐Ÿ‘‹ 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.

cosmic mistBOT
near forge
#

To be clarify : im working in the dev env. Wanted to test before pushing because the webshop does have alot of traffic and sales.

long ferry
#

Hi there ๐Ÿ‘‹ how are you collecting the card details from your customers?

near forge
#

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

long ferry
near forge
#

but then im missing some data on the setup page...

#

yes i use payment element ill send a screen w8

long ferry
#

You'll pass the Elements instance to that confirmation request, so it can pull the necessary details out of the Payment Element.

near forge
#

ok lets give it a go ! thanks ill lets you know any specifics

blissful kestrelBOT
ocean tusk
#

@near forge hello, I'm stepping in now, any immediate questions you have?

near forge
#

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