1

I have below link for creating order

https://www.mageplaza.com/magento-2-create-order-programmatically.html

How can we create Order with Paypal?

0

Assuming you use PayPal Express, you will need to change the following

from

$quote->setPaymentMethod('checkmo'); //payment method

to

$quote->setPaymentMethod('paypal_express'); //payment method
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.