#itzskyline.
1 messages · Page 1 of 1 (latest)
I am trying to cancel all items on the invoce and keep only 1 price
as you can see it shows repeated charges
would you mind sharing the Checkout Session that created the invoice?
Ok
I cleared them via dashboard but i need to understand how to clear them trough api
this one doesn't have 4 prices
I need the subscription ID or the checkout ID of the one that you shared first
it was this one
but i cleared the price manually one by one trough the dashboard
i want to understand how can i clear them with api
as otherwise i will need to do that manually everytime
I'm trying to follow this
We're almost there, I can get and treat everyone, but here it's giving me this error.
\Stripe\invoiceItem::delete($i->id);
or
\Stripe\invoiceItem::delete($i->id, []);
return:
Message: Non-static method Stripe\InvoiceItem::delete() should not be called statically
and
You must pass an array as the first argument to Stripe API method calls. (HINT: an example call to create a charge would be: "Stripe\Charge::create(['amount' => 100, 'currency' => 'usd', 'source' => 'tok_1234'])")