phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
571 stars 210 forks source link

Passing version to config is not calling the config version #335

Closed verdant-spark closed 1 month ago

verdant-spark commented 1 month ago

I have a function where I need to call the 2024-10 version; if I pass the ApiVersion in my config the SDK still calls the hard-coded old version 2024-07.

verdant-spark commented 1 month ago

Going to close this myself; turns out that having two instances of the shopify class running at the same time in different functions resulted in the second call (in a function abstracted from the main function) resulted in the main function calling the default API version when control was passed back to it. Passing the shopify object around the functions fixed that.