stripe / stripe-php

PHP library for the Stripe API.
https://stripe.com
MIT License
3.75k stars 848 forks source link

Stripe Notice: Undefined property of Stripe\StripeObject instance: type #1538

Closed MattWiseParking closed 1 year ago

MattWiseParking commented 1 year ago

Describe the bug

anywhere where stripe is loaded against the user I see the following error:

Stripe Notice: Undefined property of Stripe\StripeObject instance: type

and occasionally with the above I see the following error:

local.ERROR: Whenautomatic_tax[enabled]=true, enough customer location information must be provided to accurately determine tax rates for the customer.

To Reproduce

using laravel/cashier which uses this package, I simply refer to any stripe methods on the user object, which seems to return the above error messages

Expected behavior

i would not expect to see this error message

Code snippets

No response

OS

macOS or linux ubuntu 20.04

PHP version

8.1

Library version

most recent

API version

no idea

Additional context

No response

remi-stripe commented 1 year ago

@MattWiseParking The second error seems more like an integration error where you have automatic tax calculation enabled but you don't provide actionable information to calculate said tax. I'd recommend that you work with our support team instead for help, provide simple end to end code to reproduce so that they can help you debug things. You can contact them here: https://support.stripe.com/contact