I have this simple ruby code
Rails.logger.debug("callback local controller debug: #{auth_result.inspect} session= #{auth_result[:session]} ")
has_payment = check_billing(auth_result[:session])
The error raised is:
wrong number of arguments (given 2, expected 0..1)
But debug shows the auth_result[:session]
is only one
callback local controller debug: {:session=>#<ShopifyAPI::Auth::Session:0x00007fcfc9099c78 @id="offline_something.myshopify.com", @shop="something.myshopify.com", @state=nil, @access_token="shpua_88da86ccdf7c482d1b102cff18f950e3", @scope=#<ShopifyAPI::Auth::AuthScopes:0x00007fcfc9099b88 @compressed_scopes=#<Set: {"write_themes", "write_script_tags", "write_content", "read_products", "write_files"}>, @expanded_scopes=#<Set: {"write_themes", "write_script_tags", "write_content", "read_products", "write_files", "read_themes", "read_script_tags", "read_content", "read_files"}>>, @associated_user_scope=nil, @expires=nil, @associated_user=nil, @is_online=false, @shopify_session_id=nil>, :cookie=><ShopifyAPI::Auth::Oauth::SessionCookie expires=2022-07-26 09:49:03.094180975 UTC, name="shopify_app_session", value="">} session= #<ShopifyAPI::Auth::Session:0x00007fcfc9099c78>
Aucun commentaire:
Enregistrer un commentaire