1

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:

  1. Create a product.
  2. Create a customer.
  3. Create a cart.
  4. Call shoppingCartCustomerSet to associate the cart with the customer.
  5. 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:

  1. 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.
  2. 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?

3
  • It looks like Magento provides WSDL. Generate proxy class from it and use it. Although you still need a credential to access SOAP methods. Commented Feb 10, 2015 at 14:41
  • That's what I'm doing. But I also want to redirect the user to Magento cart, and so I need a way to sign in the user without the user knowing they were signed into a different application. Commented Feb 10, 2015 at 15:34
  • If it is possible extend the API. It shouldn't be so hard especially that it looks like you need to redefine acl stuff only. Prepopulating logn page doesn't sound good. Commented Feb 10, 2015 at 15:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.