#itzskyline.

1 messages · Page 1 of 1 (latest)

copper spruceBOT
safe valve
mental token
#

👋 happy to help

#

what are you trying to achieve?

safe valve
#

I am trying to cancel all items on the invoce and keep only 1 price

#

as you can see it shows repeated charges

mental token
#

would you mind sharing the Checkout Session that created the invoice?

mental token
#

this one doesn't have 4 prices

#

I need the subscription ID or the checkout ID of the one that you shared first

safe valve
#

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'])")

mental token
#

that's now how you do it

#

wait let me try to understand something here

#

are you using Payment Links?

safe valve
#

no

#

checkout sessions