laravel / cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.
https://laravel.com/docs/cashier-paddle
MIT License
245 stars 57 forks source link

Expose payment method #51

Closed egoist closed 4 years ago

egoist commented 4 years ago

Subscription methods like cardBrand are only available when the payment method is credit card, it makes sense to check payment method before accessing it, currently I can get the payment method via $subscription->paddleInfo()['payment_information']['payment_method'] but it's not documented, maybe it's better to expose it as $subscription->paymentMethod() too.

driesvints commented 4 years ago

Done: https://github.com/laravel/cashier-paddle/commit/6f78dfe10a4fcb3033591385a1f20eb16412a8b7