#Omri-webhook

1 messages · Page 1 of 1 (latest)

sturdy ember
#

what do you mean by start success subscription?

#

webhook is meant for listening events occurred

cold shoal
#

which event I need to listen?

#

subscription_schedule.completed? or it occurred when the subscription end date?

sturdy ember
cold shoal
#

I need event that tell me from now the subscription start to charge successfully every month...

#

I see the payment_intent.succeeded but I do not have payment_intent because it is SEPA direct debit...

sturdy ember
#

invoice.paid works too

#

btw I do think you still have a PaymentIntent in case of SEPA

cold shoal
#

ok

#

btw when I run it on my local with stripe listen --forward-to localhost:3003... all the event are called, I need to relate only to the event that I what to listen? in the production it is not gonna happened, right?

sturdy ember
#

In the Dashboard you can limit the events you want to listen

#

also in your webhook server, you could also choose events

#

in the switch case

cold shoal
#

you right there is PI

#

how I add to the payment intent metadata

#

?

sturdy ember
#

When you create the PI you will have a parameter metadata

cold shoal
#

I'm not create the PI, it is automatically

#

I create price, checkout session and subscription schedule

sturdy ember
#

Okie, in the Checkout creation call, there is a parameter

#

1 min

#

here

cold shoal
#

thank you

sturdy ember
#

np!

cold shoal
#
      payment_method_types: [type],
      line_items: [{
        price: price.id,
        quantity: 1,
      }],
      payment_intent_data: {
        metadata: metadata,
      },
      mode: 'subscription',``` like that?
#

it is not work for me, how I write that?

sturdy ember
#

metadata will be a dictionary