#sean-paymentintents

1 messages · Page 1 of 1 (latest)

glossy knoll
#

hi there! if you're doing it this way then the 'confirmation' already happened

#

that's what confirm:true means, it means "try to immediately process the payment when I create the PaymentIntent"

sly pine
#

I see, thanks for that. I just inherited the project so trying to figure out what the previous developer was doing

glossy knoll
#

looks like "initiating a payment from the backend on a saved card" to me since it begins by listing the customer's saved card and then tries to charge it

#

so in that case you don't have to contact the customer, you tried to charge their saved card and it worked, you should check the $paymentIntentObject->status to understand the next step

sly pine
#

On the stripe dashboard, I can see the payment attempts have uncaptured

glossy knoll
#

yep, so you have to capture them

#

you're using auth-and-capture : https://stripe.com/docs/payments/capture-later it requires and extra API call to capture the payment, that API call does not need the customer, it's a backend action (like a hotel authorising your card can capture those funds automatically if they have to)

sly pine
#

Thanks for being so helpful. If I have a customers card, what's stopping me charging them without their consent? Now that I have the card on Stripe, I can create payments myself on the backend without their authorisation...?

glossy knoll
#

if it's really without their consent they would open a dispute with their bank