#Diego11-setupintent
1 messages · Page 1 of 1 (latest)
Hi there!
Once a SetupIntent is successful, you should get a payment method (pm_xxx). Then you would create a PaymentIntent with payment_method: pm_xxx https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
do you mean that when a setupintintent is cerated is generated a pm_xxx ?
Once the setupintent is successful, yes.
no
okey thanks
where can i see sepa transactions in my stripe dashboard?
and state each sepa
oh yeah, SetupIntents don't appear in the payment list
if that's what you're looking for
if you have the seti_xxx ID, just paste it in the search bar
I did a paymentIntent with PaymentMethod from SetupIntent
Im looking for this paymentIntnet
same thing, I'd put the PaymentIntent ID pi_xxx in the search bar
you're likely looking at the wrong account in the dashboard then or are using Connect
can you paste the pi_xxx here?
im searching here
could you paste the pi_xxx here?
I mean, could you please paste that PaymentIntent ID from your screenshots, here, in Discord.
pi_3LABYKLNM1jQzsw215AtCsth
the direct link is https://dashboard.stripe.com/test/payments/pi_3LABYKLNM1jQzsw215AtCsth
you're looking at the wrong Stripe account
this is happening on an account "Take&Goo", not the "Takeandgoo" one in your screenshot
you can click the account name in the top left to switch to other Stripe accounts you have access to
okey
i created 2º... didnt remember haha 😢
tnx
i have one question more
When i paymentIntent is done with confirm and setup_future_usage i need mandate_data
How can i create this mandate?
i cant see /mandate/create in API routes
Hey, taking over here
The mandate creation/opt-in is generally taken care of by Stripe.js on confirmation
Specific to SEPA: https://stripe.com/docs/payments/sepa-debit/accept-a-payment?platform=web#web-collect-payment-method-details
Okey
i undestand that when i want use this payment intent in the future, providing mandate id is enough
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
i cant use same payment method more of 1 time in the future because status of SetupIntent is updated to "requires_payment_method" and "payment_metod" to null
I need that this SetupIntent persist a lot time and a lot payments
I'm confused. What are you actually trying to do here?
Are you working with Setup Intents or Payment Intents?
i save Sepa number in a Setup Intent
then
i create paymentIntent when i need to do payment
and i get payment menthod that is stored in SetupIntent
and when i do 1º payment, the SetupIntent is updated automatically and the payment metod attached is destroyed. I need that it persist for more usages
Ok, can you share a Setup Intent ID?
Taking a look
Ok. So the Setup Intent created this PM: pm_1LACShLNM1jQzsw2MsX3KGvw which has an attached mandate
yes
i want that use that payment_method for for a long time
each month
1 time
Ok, and you've tried to create a PI with it?
This is my code
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => $amount,
'currency' => 'eur',
'customer' => $customer_id,
'confirm'=> true,
'return_url' => 'https://www.takeandgoo.com',
"payment_method_types" => ["sepa_debit"],
'payment_method' => $setupIntent->payment_method,
'mandate' => $setupIntent->mandate,
]);
When i do it,"payment_method" attached in SetupInten is destroyed"
The payment is succes, but i will never could use that payment method in the future
Can you share that PI ID?
When i do it,"payment_method" attached in SetupInten is destroyed"
I'm not sure what this means
pi_3LACcxLNM1jQzsw21DRWrVkk
in SetupIntent Object you can find "payment_method". Its updated to null when i create and confirm a PaymentIntent with this payment_method
uhhmmm...
im testing and it works fine...
but, now it was updated...
i cant uderstand
You shouldn't really concern yourself with the Setup Intent once confirmed. It's useless after that point as it only facilitates PM creation/setup
oh wait,
So I wouldn't rely on that as some kind of 'source of truth'
im creating new setupIntnet below
The pm_xxx object is what you need
Well it'll be attached/saved to a customer which you can retrieve from the API
Or you can store it in your own application/database
Can i store pm_ in metadata?
In metadata where?
customer metadata
i can create 'payment_method_id'
to access fast to it
and avoid to retrieve with allPaymentMethods()
You don't need to store it anywhere. You passed a cus_xxx when you created the Setup Intent (https://dashboard.stripe.com/test/logs/req_gUByBq1EqKZ69F)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
That automatically saves it to that customer so it can be retrieve by this endpoint: https://stripe.com/docs/api/payment_methods/customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In reality, you just need to store your cus_xxx somewhere (against your users or whatever)(
but, if one customer has a lot payment methods, how i know the one is correct?
Well, you could maintain the 'default': https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
By all means you can store the pm_xxx wherever you want. But my point was to ignore the Setup Intent after confirmation, you only need the PM object
Sure, np!