I'm developing an e-commerce product using Asp.Net and C#. I would like to use the checkout pages from Magento.
So I'm using Magento SOAP API in order to:
- Create a product.
- Create a customer.
- Create a cart.
- Call shoppingCartCustomerSet to associate the cart with the customer.
- Add the product to the cart and then call shoppingCartProductMoveToCustomerQuote.
I've learned that in order for the call to shoppingCartProductMoveToCustomerQuote to work out, the customer need to be signed in. I would like to single sign on the customer and redirect to the cart page of Magento, and I'm looking for the an easy and elegant way to do it.
The options I can think of are:
- Use OAuth to log in the customer to Magento, but in this scenario the customer will have to enter their password, which they don't even know... I guess I can try to populate it somehow, but I think there should be an easier way.
- Use PHP code I found in a similar questions (Magento customer login programmatically, Log user into Magento programmatically), and create my own SOAP API.
Can you suggest any other solution?