#phant
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.
What PaymentMethod you want to add exactly ? and why ?
i want to make the status to incomplete
but the status currently is requires_payment_method
Incomplete is a dashboard status and not an APi status. You can consider requires_payment_method == incomplete
Here are all the available status:
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
so anything hitting payment_intent.payment_failed is incomplete ?
Yes you can consider that
so if i dont get the exact data using strip cli while initiating payment or cancelling payment ( like how strip api gives), whats the use of using strip cli
in strip api i was getting customer_email, but not getting when used from strip cli
What field exactly you want to get/override ?
customer_email
i could not find the field after invoice.paid was triggered
it was null basaically
On what Stripe object
Can you share the reference on the Stripe API docs please ?
This screenshot on what Stripe Object ?
Are you referring to this one?
https://stripe.com/docs/api/invoices/object#invoice_object-customer_email
its on > event.data.object
that was how it was used when received from strip dashboard
You can't override customer_email, with Stripe CLi because you can't specify that field using the API:
You can overrides fields that are supported in the public API
not overriding
you can specify the customerId but not the customer_email
cant i get it from the used customer id which already exists for the client created
I don't understand you, but when calling stripe trigger you can specify the customer Id not the customer_email
yes from that id cant we retrieve everything
something like stripe trigger invoice.paid --override invoice:customer="cus_123"
You mean you can retreive all the details ? or not ?
yes the exsiting details of that customer from that customer id
so what is the issue ?
stripe trigger invoice.paid --override payment_intent:customer=cus_PUPIM79kZXBr7s
why is there a change in customer id?
You want to override the invoice object and not the payment_intent, you need to update the comamdn like this:
stripe trigger invoice.paid --override invoice:customer=cus_PUPIM79kZXBr7s
if you want to update the customer for both invoice and payment_intent then you need to set that too:
stripe trigger invoice.paid --override payment_intent:customer=cus_PUPIM79kZXBr7s --override invoice:customer=cus_PUPIM79kZXBr7s
got thsi error
with this > stripe trigger invoice.paid --override invoice:customer=cus_PUPIM79kZXBr7s
The customer must have a payment method id set
too
and you need to override it
If you want more customer fixture to run, you can pull the base fixture
and update using the values you want
and then trigger it
if default is not set, automatically payments wont be deducted of the customer?
even tho they have paid with a card and havent altered it there after
When using PaymentIntents there's no concept of default payment method. It always has to be explicitly specified.
no i dont mean payment intents
with a subsription
what is payment intent exactly? its a one time payment?
I thought you're trying to run this (from your initial message):
stripe trigger payment_intent.payment_failed --override payment_intent:customer=cus_PUPIM79kZXBr7s
Yes, it's a way of one-time charging customers.
oh so how can i use it on a subsription ?
What are you actually trying to do? Sorry, I am not following.
u said its a one time charging thing
i want to use that command on monthly charging
not payment intent ( one time )
how can modify that command accordingly
stripe trigger invoice.paid --override payment_intent:customer=cus_PUPIM79kZXBr7s
basically i want my subscription to run again with a command for a customer
I am not sure I understand what are you using the stripe trigger command for.
to trigger a customers subsription payment
customer with id cus_PUPIM79kZXBr7s
so that i dont have to wait for a day or month to get that event again
I am not sure you are using the command correctly.
stripe trigger has a limited use of testing webhooks. Everything else can be pretty much achieved with calling the API endpoints.
stripe trigger invoice.paid --override invoice:customer=cus_PUPIM79kZXBr7s
If you want to test Subscriptions without waiting, I recommend you to look into Test Clocks instead: https://stripe.com/docs/billing/testing/test-clocks
Please don't use stripe trigger for this.
What's 1 day?
You can set exact time via API: https://stripe.com/docs/api/test_clocks/create#create_test_clock-frozen_time
Anywhere with Stripe API
stripe test_helpers test_clocks create \
--frozen-time=1577836800
You mean what's the purpose of stripe trigger? This is only a subset of what Stripe CLI capabilities, and only used to generate test webhook events.
got it thanks
Happy to help.