#l3ash9i98
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- l3ash9i98, 18 minutes ago, 21 messages
Hi, let me help you with this.
You can control the shown payment method types in 2 ways:
- Automatically (recommended) via Dashboard, you need to enable the desired payment methods here: https://dashboard.stripe.com/settings/payment_methods
- Manually when creating a PaymentIntent via
payment_method_types: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
Webhooks ?
IS it necessary ? I mean , what is the functionality of that ?
I can see too that i have a lot of things activated but it doesnt show on the checkout form
Webhooks are necessary for Stripe to notify your app that a payment is successful: https://stripe.com/docs/webhooks
Bank debits usually take long time to complete (sometimes days), so you can't keep your customer on session for that. Stripe will send you a notification on your webhook endpoint when it's succeeded. Or failed.
Im still not sure abot what to do with the cases
I mean , what would be the appropiate use of it ?
Updating the dashboard ?
case 'payment_intent.created':
// El PaymentIntent fue creado
$paymentIntent = $event->data->object;
// Lógica específica para cuando se crea un PaymentIntent
break;
case 'payment_intent.payment_failed':
// El PaymentIntent falló
$paymentIntent = $event->data->object;
// Lógica específica para cuando falla un PaymentIntent
break;
case 'payment_intent.succeeded':
// El PaymentIntent fue exitoso
$paymentIntent = $event->data->object;
// Lógica específica para cuando un PaymentIntent tiene éxito
// Esto podría incluir confirmar un pedido, actualizar inventario, enviar notificaciones, etc.
break;
It depends on your business logic. What do you want to happen when the payment goes through?
If transaction is succesful to get an email on both sides or notification on the dashboard
Same for failed
You can do this in the respective cases: payment_intent.succeeded and payment_intent.payment_failed. What's the question exactly?