#Jane_Zhong

1 messages · Page 1 of 1 (latest)

urban nexusBOT
marsh heart
#

Hi 👋 you can't, once it has been used it is prevented from being deleted.

inland arch
#

oh no .. Hmm ,one more question . I realized ,when I use webhook, I always get a payment intent which always charge me 20 dollars.which I have no idea where it comes from .Here is the ID:pi_3Mo5N8Em6oZta2po0PbV06D0

#

Once I turn on webhook,it charges automatically

marsh heart
#

Taking a look, but that doesn't sound like it makes much sense. Webhook events are not related to the creation of Payment Intents.

#

Oohh, are you using the Stripe CLI to test your webhook endpoint?

inland arch
#

yes !!

marsh heart
#

That's expected then. The CLI will take actions necessary to trigger the Event that you tell it to, which may involve creating objects and progressing them through parts of their lifecycle.

inland arch
#

I am not sure if I am using Stripe's default secrect key ?

marsh heart
#

There is no such thing as a default secret key. Are you forwarding Events to your endpoint from the CLI, or did you register a webhook endpoint (either in the Stripe dashboard or API)?

inland arch
#

cli I think

marsh heart
#

Then you use the signing secret that is provided in the console after running the stripe listen command.

inland arch
#

Yes,I am following these steps:

#

So , I have no idea ,why I always get this event ... I am searching all of my code ,I don't have such an event at all .. ID: pi_3Mo5N8Em6oZta2po0PbV06D0

marsh heart
#

That ID is the ID of a Payment Intent (indicated by the pi_ prefix) Events will have a prefix of evt_.

Can you clearly articulate the troubling behavior that you're encountering? I'm having trouble understanding whether it is the generation of events by the stripe trigger command, or if the concern is with performing signature verification in your Event handling code.

inland arch
#

Ok,give me a sec , let me collect them good and I will send to you .

#

I have clarified all the steps I have

#

Please let me know if you need more infos

marsh heart
#

So what's the problem there? Are you referring to that message shown in your last screenshot?

inland arch
#

There problem here is ,I never create a payment which costs 2000 amount . And this payment always active once I finished all the steps I show in the pdf

marsh heart
#

You do, that's what stripe trigger payment_intent.created will do.

inland arch
#

I would need to know where dose this payment come from

marsh heart
#

In order to trigger a payment_intent.created Event, the CLI creates a Payment Intent.

inland arch
#

It means ... stripe trigger is not use for detect if the payment has already create or not ,it is using for create a payment ?

#

I got it now .thank you so much for your time !

marsh heart
#

Correct, stripe trigger is used to execute the steps necessary to trigger the creation of the type of Event you specified.