Skip to content

Commit 501d46d

Browse files
committed
MAGETWO-53238: Vault Provider field contains Payflow Pro option in countries which don't have such solution
- Removed payment details related to previous order from reordered quote
1 parent b5353a2 commit 501d46d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/code/Magento/Sales/Model/AdminOrder/Create.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,6 @@ public function initFromOrder(\Magento\Sales\Model\Order $order)
515515
$this->setShippingMethod($order->getShippingMethod());
516516
$quote->getShippingAddress()->setShippingDescription($order->getShippingDescription());
517517

518-
$paymentData = $order->getPayment()->getData();
519-
unset($paymentData['cc_type'], $paymentData['cc_last_4']);
520-
unset($paymentData['cc_exp_month'], $paymentData['cc_exp_year']);
521-
$quote->getPayment()->addData($paymentData);
522-
523518
$orderCouponCode = $order->getCouponCode();
524519
if ($orderCouponCode) {
525520
$quote->setCouponCode($orderCouponCode);

0 commit comments

Comments
 (0)