#417goose_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1227335178968371201
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
In the end, we would like to be able to record what payment type they used (again; card, klarna, afterpay etc..)
Hello
That information would likely be under payment_method parameter
You can expand payment_method when you retrieve the payment intent
https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method
You said likely are u for sure than I need to expand?
I'm 99% pretty sure it would be under payment_method
I just haven't tested it myself so would recommend giving it a try to be 100% sure
Ok will try and will come back if unsuccessful. Would I use the expand option on the confirmpayment ? would it then pass it to the return url?
Ie:
const { error } = await stripe.confirmPayment({
elements,
confirmParams: {
// Make sure to change this to your payment completion page
expand: ['payment_method'],
return_url: "https://wwwscrubin.com/checkoutrecipt.cfm",
},
});
medical scrubs,nurse scrubs,scrub store,scrubs uniforms,scrubs online,medical uniforms,scrubs clothing,nursing uniforms,doctor scrubs,scrub shop