#pawan425_api

1 messages ยท Page 1 of 1 (latest)

proven bridgeBOT
#

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

west mason
#

๐Ÿ‘‹ happy to help

#

you can use the payment_intent.* events

stable heart
#

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

west mason
#

you don't have that for payment intents

#

there is no notion of due date for a PaymentIntent

stable heart
#

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

#

?

west mason
#

not sure I follow

stable heart
#

?

west mason
#

I'm not sure I understand the ask

stable heart
#

so who can help /

#

?

west mason
#

I do, but you need to explain your question

stable heart
#

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?

west mason
#

do you mean 3DS?

stable heart
#

not sure

#

what kind of verification asks when i tried that

west mason
#

oh do you mean authorization on the card?

stable heart
#

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

west mason
#

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.

stable heart
#

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

#

?

proven bridgeBOT
lunar raptor
#

yes

stable heart
#

so if i create payment intent for that customer and use that payment method id so does that auto deduct the payment from that ?

lunar raptor
stable heart
#

does that also required that the paymentMethods which we retrive from the customer should be default payment method of that customer ?

lunar raptor
#

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.

proven bridgeBOT
stable heart
#

oh ohk thanks