I've been looking high and low for a function to get the default payment method, but couldnt find one. I stumbled upon $User->defaultPaymentMethod() by reading through the source code....unfortunately it doesn't return the user's default payment method, eventhough I have it set in stripe. How can I get the defaultPaymentMethod?
Update:
I found a roundabout way to do it after looking through the cashier source:
Description:
Steps To Reproduce:
I've been looking high and low for a function to get the default payment method, but couldnt find one. I stumbled upon $User->defaultPaymentMethod() by reading through the source code....unfortunately it doesn't return the user's default payment method, eventhough I have it set in stripe. How can I get the defaultPaymentMethod?
Update:
I found a roundabout way to do it after looking through the cashier source:
which returns a value like
"pm_0GhRNwEXGF9cqh5pMGhu331p"
Unless I'm missing something, there seems to be a bug: calling $loggedinUser->defaultPaymentMethod() doesn't return the same value.