4 years ago

use Stripe\Customer as StripeCustomer in Controller throws Error

Posted 4 years ago by jsrosas

Hi Everyone, I am having an issue trying to use StripeCustomer in a controller. I need to retrieve a customer from Stripe. So I have on my controller : use Stripe\Customer as StripeCustomer; I see in cashier's Billable.php being used this way. But I try to use it in the controller I get

Could not determine which URL to request: Stripe\Customer instance has invalid ID: Any ideas how to use Stripe\Customer within a controller? Is there a scope of namespace? Thanks in advance.

Please sign in or create an account to participate in this conversation.