#Mammouth
1 messages · Page 1 of 1 (latest)
Hi 👋 I'm not sure offhand. What version of our PHP library are you using?
10.17.0
Gotcha, and can you share the snippet you're using that is encountering that error?
\Stripe\PaymentMethod::detach($pmId);
oops
\Stripe\Stripe::setApiKey($conf->stripe->secretKey);
\Stripe\PaymentMethod::detach($pmId);
$pmId is a good one
also tried with \Stripe\PaymentMethod::detach($pmId, []);
I tried mirroing that approach, but I'm getting a different error about not being able to call a non-static method statically.
damn, i got this error an hour ago, but didn't remember why
I rewrote it this way, and am no longer encountering an error:
$payment_method->detach();```
Any time!