#edutomesco
1 messages ยท Page 1 of 1 (latest)
This looks to be a Checkout Session?
Okey so just I can adjust by dashboard
another question how can I edit a billing threshold in a subscription by checkout?
What do you mean by the 'billing threshold'?
definde a threshold
you have this functionallity when a user arrives to these you charge him
They can't be set via the Checkout API no
You'd need to edit the sub_xxx created by Checkout if you want to impose a threshold
sorry
I'm trying the localhost triggering webhook cli
and it says to me: webhook had no valid signature
I follow all the steps to generate the event
๐ happy to help
you'd have to verify the event signature as described here
did you copy the webhook endpoint secret generated by the CLI?
aaahhh
I think it's this
how can I send a webhook locally
but I need to fake a subscription
because the checkout.session.completed doesn't send a subscription id
are you using the Stripe CLI?
yes
if the Checkout Session mode is subscription then you would receive a subscription id on the Checkout Session object https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
which part?
the checkout.session.completed event with a subscription id on the Checkout Session object?
yes
then you either need to create a CheckoutSession directly yourself that uses mode:"subscription" , or you could clone and edit the fixture the CLI uses to make a version that uses subscription mode instead : https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/checkout.session.completed.json