#Diego11-setupintent

1 messages · Page 1 of 1 (latest)

austere cape
#

Hi there!

nocturne estuary
#

do you mean that when a setupintintent is cerated is generated a pm_xxx ?

austere cape
#

Once the setupintent is successful, yes.

nocturne estuary
#

Okey i saw pm created in setupintet, thanks

#

this setupintent expires?

upper junco
#

no

nocturne estuary
#

okey thanks

#

where can i see sepa transactions in my stripe dashboard?

#

and state each sepa

upper junco
nocturne estuary
#

i cant find there my last transaction

#

status is pending

upper junco
#

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

nocturne estuary
#

I did a paymentIntent with PaymentMethod from SetupIntent

#

Im looking for this paymentIntnet

upper junco
#

same thing, I'd put the PaymentIntent ID pi_xxx in the search bar

nocturne estuary
#

when i search it in seachbar response that doesnt exist

#

PI Object i retrieve

upper junco
#

you're likely looking at the wrong account in the dashboard then or are using Connect

#

can you paste the pi_xxx here?

nocturne estuary
#

im searching here

upper junco
#

could you paste the pi_xxx here?

nocturne estuary
#

yes

#

not found

upper junco
#

I mean, could you please paste that PaymentIntent ID from your screenshots, here, in Discord.

nocturne estuary
#

pi_3LABYKLNM1jQzsw215AtCsth

upper junco
#

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

nocturne estuary
#

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

outer urchin
#

Hey, taking over here

#

The mandate creation/opt-in is generally taken care of by Stripe.js on confirmation

nocturne estuary
#

Okey

#

i undestand that when i want use this payment intent in the future, providing mandate id is enough

outer urchin
nocturne estuary
#

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

outer urchin
#

I'm confused. What are you actually trying to do here?

#

Are you working with Setup Intents or Payment Intents?

nocturne estuary
#

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

outer urchin
#

Ok, can you share a Setup Intent ID?

nocturne estuary
#

i create one new now

#

seti_1LACScLNM1jQzsw2d6eI3wlC

outer urchin
#

Taking a look

#

Ok. So the Setup Intent created this PM: pm_1LACShLNM1jQzsw2MsX3KGvw which has an attached mandate

nocturne estuary
#

yes

#

i want that use that payment_method for for a long time

#

each month

#

1 time

outer urchin
#

Ok, and you've tried to create a PI with it?

nocturne estuary
#

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

outer urchin
#

Can you share that PI ID?

#

When i do it,"payment_method" attached in SetupInten is destroyed"
I'm not sure what this means

nocturne estuary
#

pi_3LACcxLNM1jQzsw21DRWrVkk

nocturne estuary
#

uhhmmm...

#

im testing and it works fine...

#

but, now it was updated...

#

i cant uderstand

outer urchin
#

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

nocturne estuary
#

oh wait,

outer urchin
#

So I wouldn't rely on that as some kind of 'source of truth'

nocturne estuary
#

im creating new setupIntnet below

outer urchin
#

The pm_xxx object is what you need

nocturne estuary
#

but pm_xxx is attached to Setupintent

#

Can i get it without Setupintent?

outer urchin
#

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

nocturne estuary
#

Can i store pm_ in metadata?

outer urchin
#

In metadata where?

nocturne estuary
#

customer metadata

#

i can create 'payment_method_id'

#

to access fast to it

#

and avoid to retrieve with allPaymentMethods()

outer urchin
#

In reality, you just need to store your cus_xxx somewhere (against your users or whatever)(

nocturne estuary
#

but, if one customer has a lot payment methods, how i know the one is correct?

outer urchin
#

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

nocturne estuary
#

okey

#

i got it

#

i was a confused vision about it

#

thanks u, very helpful

outer urchin
#

Sure, np!