#Mammouth

1 messages · Page 1 of 1 (latest)

timber epochBOT
errant merlin
#

Hi 👋 I'm not sure offhand. What version of our PHP library are you using?

brisk ocean
#

10.17.0

errant merlin
#

Gotcha, and can you share the snippet you're using that is encountering that error?

brisk ocean
#

\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, []);

errant merlin
#

I tried mirroing that approach, but I'm getting a different error about not being able to call a non-static method statically.

brisk ocean
#

damn, i got this error an hour ago, but didn't remember why

errant merlin
#

I rewrote it this way, and am no longer encountering an error:

$payment_method->detach();```
brisk ocean
#

Awesome !!!

#

Thanks

errant merlin
#

Any time!