#jimmyhowedotcom

1 messages ยท Page 1 of 1 (latest)

austere nimbusBOT
junior scroll
#
$stripeProduct = Cashier::stripe()->products->create($attributes, [
            'expand' => ['default_price']
        ]);
rustic veldt
#

Hi ๐Ÿ‘‹

junior scroll
#

Sorry I had a look through the code, this was bombing out in RequestOptions.php ...

#
if ($strict && !empty($options)) {
                $message = 'Got unexpected keys in options array: ' . \implode(', ', \array_keys($options));

                throw new \Stripe\Exception\InvalidArgumentException($message);
            }```
#

I should have put it in the attributes array ๐Ÿ™„

rustic veldt
#

Ah, okay so are you able to provide the expand parameter now?

junior scroll
#

Yeah added it into the attributes, misread the docs thanks ๐Ÿ™‚

rustic veldt
#

Great! Happy to be a rubber duck