laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.37k stars 671 forks source link

withMetadata() nothing in stripe #849

Closed quantumwebco closed 4 years ago

quantumwebco commented 4 years ago

Description:

There is a method in the SubscriptionBuilder class called withMeta which should take an array of key value pairs and add it to the subscription meta data in stripe

The subscription is created fine but no metadata is attached

This method isn't in the docs anywhere. Should it work?

Steps To Reproduce:

$this->User->newSubscription($plan->stripe_product_id, $plan->stripe_id)
                            ->withMetadata([
                                'test' => 'test',
                            ])
                            ->create($paymentMethod->id);
quantumwebco commented 4 years ago

It does work... Was just me derping out again. Apologies.