Skip to content

Commit 44a32c1

Browse files
Fix MOTO payment type(created by admin and paid by customer)
1 parent 23a850f commit 44a32c1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

includes/api/class-wc-checkoutcom-api-request.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,12 @@ private static function get_request_param( WC_Order $order, $arg, $subscription
427427
}
428428
}
429429

430+
// If this is MOTO order(Created via admin paid by customer from email).
431+
if ( $order->is_created_via( 'admin' ) ) {
432+
$payment->payment_type = PaymentType::$moto;
433+
unset( $payment->three_ds );
434+
}
435+
430436
// PayPal add items to payment.
431437
if ( 'paypal' === $method->type || $is_paypal_renewal ) {
432438
$payment->items = self::get_paypal_products( $order );

0 commit comments

Comments
 (0)