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?

1 Answer 1

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

Your Answer

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

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