#PERF
1 messages ยท Page 1 of 1 (latest)
example PI - > pi_3N0tbDFdV4bT3T5F0ejUR4Xk
Hi, taking a look
Can you rephrase the question here?
I'm still not sure what you're asking here but there is not default value as it expects an optional enum: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
If none is provided, it's set as null.
Happy to help further if you can add more details here @weak basin
What was your expectation?
I wondering how that is interpreted when say adding a new payment method when updating the payment intent.
Are you passing the setup_future_usage when updating the Payment Intent https://stripe.com/docs/api/payment_intents/update#update_payment_intent-setup_future_usage?
I never pass it, i am expecting to be blank
i am just wondering what happens when you add this https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-payment_method_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
when confirming
I never pass it, i am expecting to be blank
Then in this case, it would be null
yea...
so is that off_session or on_session?
or neither?
and if neither what does that mean
Neither because you're not setting setting this for future usage
This means that you can't use that payment method for future payments
ok so it should not save it at all
I do not know what 'save' means in this sense, but if you try to use that payment method again, it will error out.
PERF
add to customer
๐ hi again! We chatted about this a bit yesterday. That's correct, if you don't use setup_future_usage, it's not possible to attach the PaymentMethod to a Customer object and use that PaymentMethod for future charges
thank you. For some reason ii was wondering what null was vs something else. But i am just being slow this week thanks again for all the info