cancel
Showing results for 
Search instead for 
Did you mean: 

Create orders without payment step

Create orders without payment step

I want to know how to create orders programmaticaly without passing through the payement step.

 

I know it's possible, using helper (or model, but I can't find the link) :

https://webkul.com/blog/create-quote-and-order-programmatically-in-magento2/

But I don't know how to use it. And some methods are deprecated, can anyone help me ?

 

To sum up : I want to create and order and in the same time, add card product when I click on by "confirm my order". I want my customer to add product to his cart. Then, when he goes on "checkout", my custom page is displaying with some info (such as addresses...). Then when he clicks on "validate", his commande is created in magento but he doesn't had to go to the payment step. The order is created only for information (in magento), because the "real" order will be manage by an API.

2 REPLIES 2

Re: Create orders without payment step

Hi @morgan_tartreau1,

 

I guess that could be a lot of effort.

Is it possible for you to create a custom/silly offline payment method just to have the entity into the order?

 

Re: Create orders without payment step

It's a good idea, but I need to have my custom layout anyway :/