#pawan425_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/1263062613600895008
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
which event i need to use which says that "hey your date is due now you need to pay immediately"
how can i use payment intent on which i can set due date so on that date user needs to pay
you don't have that for payment intents
there is no notion of due date for a PaymentIntent
ok , can you please let me know if i create payment method of card and i attach with the future payment intent as a payment mathod then does it asks for verification when i attach it with the customer
?
not sure I follow
?
I'm not sure I understand the ask
I do, but you need to explain your question
oh ohk let me explain
if i create payment method of type "card" and i will attach that with the customer (to use that future payments on paymentintent which i create for that customer) as a payment mathod then does it asks for verification of that payment method when i attach it with the customer?
do you mean 3DS?
oh do you mean authorization on the card?
please read this 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.
let me chekc
yes , when i attaching the new payment method by using this api it said that payment method needs to verify first
for testing it works on " pm_visa_card " just like this
I mean when you read this, it says not to use it and use SetupIntents instead
Using the /v1/payment_methods/:id/attach endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for future use, which makes later declines and payment friction more likely. See Optimizing cards for future payments for more information about setting up future payments.
PaymentIntent with setup_future_usage right
setup_future_usage: 'off_session',
like when i use this in my payment intent does that automaticaly attach the payment method which customer used on that payment intent
?
yes
so if i create payment intent for that customer and use that payment method id so does that auto deduct the payment from that ?
like charging the saved card later https://docs.stripe.com/payments/save-during-payment?platform=web&ui=elements#charge-saved-payment-method ?
does that also required that the paymentMethods which we retrive from the customer should be default payment method of that customer ?
no, the default_payment_method is only relevant when using Subscriptions.
otherwise, you explicitly pass the ID of the PaymentMethod you would like to charge.
oh ohk thanks