Skip to content

Commit f75ffb1

Browse files
Merge pull request #307 from checkout/fix/moto-payment
Fix MOTO payment type
2 parents d1cdbce + 44a32c1 commit f75ffb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)