stripe-payments

Laravel/Cashier invoices() returns empty Object

佐手、 提交于 2020-12-01 13:30:39
问题 I've got a problem with the cashier package from Taylor (https://github.com/laravel/cashier). When I try to get the Invoices for a User the Object that is returned is Empty. For information i've set up my cashier database columns into a membership table! And then set up the proper relationships. I can charge the User if I do something like this: $user->membership->subscription('1month')->create($token); But if I want to get the invoices like so $invoices = $user->membership->invoices(); it

Laravel/Cashier invoices() returns empty Object

不羁的心 提交于 2020-12-01 13:29:33
问题 I've got a problem with the cashier package from Taylor (https://github.com/laravel/cashier). When I try to get the Invoices for a User the Object that is returned is Empty. For information i've set up my cashier database columns into a membership table! And then set up the proper relationships. I can charge the User if I do something like this: $user->membership->subscription('1month')->create($token); But if I want to get the invoices like so $invoices = $user->membership->invoices(); it

Laravel/Cashier invoices() returns empty Object

跟風遠走 提交于 2020-12-01 13:28:18
问题 I've got a problem with the cashier package from Taylor (https://github.com/laravel/cashier). When I try to get the Invoices for a User the Object that is returned is Empty. For information i've set up my cashier database columns into a membership table! And then set up the proper relationships. I can charge the User if I do something like this: $user->membership->subscription('1month')->create($token); But if I want to get the invoices like so $invoices = $user->membership->invoices(); it