cancel
Showing results for 
Search instead for 
Did you mean: 

Creating orders via API without payment

SOLVED

Creating orders via API without payment

Hi!


I'm working on orders injection via Magento API. For charging customers we use Stripe.

 

Is it possible to say Magento API just to create a new order without processing payment?

 

Regards,
Oleg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Creating orders via API without payment

Your question is in the "Core Technology - Magento 2" section.

View solution in original post

5 REPLIES 5

Re: Creating orders via API without payment

Yes, it is possible.

How to create an order programmatically with \Magento\Quote\Api\CartManagementInterface placeOrder()? https://mage2.pro/t/732

The placeOrder()  method of the \Magento\Quote\Api\CartManagement class does not require a payment method: https://github.com/magento/magento2/blob/2ea8cdd7/app/code/Magento/Quote/Model/QuoteManagement.php#L...

Re: Creating orders via API without payment

Hi Dmitry,

 

So should I use this API call or some other?

http://devdocs.magento.com/guides/m1x/api/soap/checkout/cartPayment/cart_payment.method.html

 

Regards,

Oleg

Re: Creating orders via API without payment

Your link is for Magento 1.x, its API is incompatible with Magento 2.

Re: Creating orders via API without payment

Sorry, I didn't mention this at the beggining - I need it for Magento 1.*

 

Is it feasible?

Re: Creating orders via API without payment

Your question is in the "Core Technology - Magento 2" section.