#lokis
1 messages ยท Page 1 of 1 (latest)
customer id - cus_O2c1crGrBWRPFJ
Could you share the request id to pay the Invoice? from https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_xxx
req_UJihEA64N8xo8S
That Invoice is $0, meaning it won't need a payment
So it will succeed automatically
hmmm, there was an invoice item added to it for $16 though
This is the flow:
- Created invoice item first using stripe.invoiceItems.create(customer: customerId, price: trialPriceId, currency),
- created the invoice using stripe.invoices.create(customer: customerId),
- Paid it using stripe.invoices.pay(invoice.id)
is this correct?
I'm not sure where the $0 invoice is coming from though
Yeah but looks like the Invoice didn't pick up your Invoice Item. I don't know why but how about specifically specify it?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Create the Invoice first, then create the InvoiceItem point to it
sure, let me give it a try
that worked, thanks so much
how can I test incorrect cvc failures?
I tried the test card 4000000000000127 but since it is configured differently, it is failing much earlier in the flow
That seems to be the correct card for incorect cvc
what do you mean by much earlier?
Ah yes because SetupIntent will trigger an authentication under the hood
There is only one card simulate decline after attaching 0341 but yes it's only for general decline
Sorry, I guess you can try a real card but with a wrong CVC?
Does stripe test mode accept real cards?
Oh you are right, sorry that's not possible
๐
is there any other way to test this? we want to ensure our payment flows are working correctly before we go live