We have the situation that our product is whitelabeled on different domains.
... are all hosting the same product/webapp of ours just with different colors etc.
Now if a customer goes to the account page on our webapp on partnerA.com and buys a 'premium' subscription we open foxycart. We use the same store on partnerA.com as on origin.com (otherwise it gets way too complicated maintaining everything from shipping logic, over coupons over xml datafeed handling).
The SSO endpoint of course is set to origin.com - but the user in this case is not logged in on origin.com, he is logged in on partnerA.com --> Meaning he needs to login again and SSO does not work here as expected.Question:
We could still use our endpoint on origin.com and check whether the user is logged in on partnerA.com for example - however in order for that to work we would need to know where the user came from when he opened the foxycart checkout.
Do you have an idea how to achive that? Your documentation
about the request body of the endpoint call does not mention anything that could help here.
We could maybe set a foxycart variable when the checkout is opened with the domain ("came_from"). However how can we retrieve that? We have the
, maybe by using that and make a call to foxycart?