In a controller, I’m doing the success action for a custom payment method. It is a multistore installation:
http://www.domain1.com - Store 1
http://www.domain2.com - Store 2
The payment gateway calls http://www.domain1.com/index.php/mypayment/standard/success even if the purchase has been made in domain2 (store 2). It is a limitation of the gateway, I cannot set dinamically the URL for the success action.
I would like to render the layout of the store in which the purchase was made (I can know it by the order numbre that the gateway sends).
With the following code I always get the template of store1 (domain1):
Is there a way to set the storeId of the layout I want to load?
Thanks in advance!