#jimmyhowedotcom
1 messages ยท Page 1 of 1 (latest)
$stripeProduct = Cashier::stripe()->products->create($attributes, [
'expand' => ['default_price']
]);
Hi ๐
Can you share the API request that gives you this error?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
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 ๐
Ah, okay so are you able to provide the expand parameter now?
Yeah added it into the attributes, misread the docs thanks ๐
Great! Happy to be a rubber duck