#bvk03_webhooks
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/1253580211971293307
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hello! I'm a little confused, can you describe the scenario you're trying to achieve here on your application?
i will share curl call with you
this is a public channel, please don't share any requests that include a secret key, even if it's a testmode secret key
okay
If that's your secret key, I strongly suggest you roll your test mode key immediately as the one you sent is now considered compromised: https://dashboard.stripe.com/test/apikeys [0]
Also, I don't need the code yet, I'm trying to clarify your use case
why do you want to create / collect a PaymentMethod first, then attach it later?
i need first payment intent and after create a customer and attach with Pi, all process need to do on front end without back-end side
Creating a PaymentIntent must be done from your backend first anyway. On that same note, why must you do all of these on your frontend without your backend being involved first?
yes
that doesn't answer the question - why must you do all of these on your frontend without your backend being involved first?
i need only that type of customer who confirm to checkout
if possible to setup intent with/ after create customer
from what I understand, you don't want to create a Customer till they successfully make a payment?
When creating a PaymentIntent, pass in setup_future_usage="off_session" subsequently you should be able to create a Customer and attach it
why would you want to do that? The PaymentMethod can be attached to the customer later if you used setup_future_usage="off_session" when creating the PaymentIntent. This is the API you would use https://docs.stripe.com/api/payment_methods/attach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.