#ajay-error

1 messages · Page 1 of 1 (latest)

cinder vector
proven nacelle
#

Thanks

I think use only Stripe\Exception\ApiErrorException is sufficient?

#

I am using stripe
Location
Reader
Checkout Session
Account
Product
Subscription

clever solstice
#

Well each exception handles a different type of error

proven nacelle
#

ok thank you

#

I have another question

I am using terminal
I can register and delete too

but before delete I am checking if terminal is there or not using api

$terminal = $stripe->terminal->readers->retrieve(

but it gives error
ERROR: No such reader: 'tmr_xxxx' {"exception":"[object] (Stripe\Exception\InvalidRequestException(code: 0)

I just want check if terminal exists then delete

clever solstice
#

Then you should handle that InvalidRequestException exception

#

As that Terminal Reader doesn't exist! I don't understand

proven nacelle
#

Ok
thank you for all help

clever solstice
#

Sure, np!