#phant

1 messages · Page 1 of 1 (latest)

elder whaleBOT
#

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.

  • phant, 1 hour ago, 8 messages
  • phant, 1 hour ago, 14 messages
  • phant, 2 days ago, 37 messages
rancid sandal
#

What PaymentMethod you want to add exactly ? and why ?

small plume
#

i want to make the status to incomplete

#

but the status currently is requires_payment_method

rancid sandal
#

Incomplete is a dashboard status and not an APi status. You can consider requires_payment_method == incomplete

small plume
#

so anything hitting payment_intent.payment_failed is incomplete ?

rancid sandal
#

Yes you can consider that

small plume
#

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

rancid sandal
#

What field exactly you want to get/override ?

small plume
#

customer_email

#

i could not find the field after invoice.paid was triggered

#

it was null basaically

rancid sandal
#

Can you share the reference on the Stripe API docs please ?

small plume
rancid sandal
rancid sandal
small plume
#

its on > event.data.object

#

that was how it was used when received from strip dashboard

rancid sandal
#

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

small plume
#

not overriding

rancid sandal
#

you can specify the customerId but not the customer_email

small plume
#

cant i get it from the used customer id which already exists for the client created

rancid sandal
#

I don't understand you, but when calling stripe trigger you can specify the customer Id not the customer_email

small plume
#

yes from that id cant we retrieve everything

rancid sandal
#

something like stripe trigger invoice.paid --override invoice:customer="cus_123"

rancid sandal
small plume
#

yes the exsiting details of that customer from that customer id

rancid sandal
#

so what is the issue ?

small plume
#

stripe trigger invoice.paid --override payment_intent:customer=cus_PUPIM79kZXBr7s

#

why is there a change in customer id?

rancid sandal
#

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

small plume
#

got thsi error

#

with this > stripe trigger invoice.paid --override invoice:customer=cus_PUPIM79kZXBr7s

rancid sandal
#

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

small plume
#

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

gleaming grail
#

When using PaymentIntents there's no concept of default payment method. It always has to be explicitly specified.

small plume
#

no i dont mean payment intents

#

with a subsription

#

what is payment intent exactly? its a one time payment?

gleaming grail
#

I thought you're trying to run this (from your initial message):

stripe trigger payment_intent.payment_failed --override payment_intent:customer=cus_PUPIM79kZXBr7s

gleaming grail
small plume
#

oh so how can i use it on a subsription ?

gleaming grail
#

What are you actually trying to do? Sorry, I am not following.

small plume
#

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

gleaming grail
#

I am not sure I understand what are you using the stripe trigger command for.

small plume
#

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

gleaming grail
#

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.

small plume
#

stripe trigger invoice.paid --override invoice:customer=cus_PUPIM79kZXBr7s

gleaming grail
small plume
#

i used this

#

and i got this error

gleaming grail
#

Please don't use stripe trigger for this.

small plume
#

oh

#

but with test clock i could not set it immidiately

#

like it was 1 day min

gleaming grail
#

What's 1 day?

small plume
#

cannnot set time, minimum is 1 day cycle

gleaming grail
small plume
#

where do i use these

#

in stripe cli?

gleaming grail
#

Anywhere with Stripe API

small plume
#

got it

#

so whats the purpose of strip cli?

gleaming grail
#

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.

small plume
#

got it thanks

gleaming grail
#

Happy to help.