Skip to content

Commit

Permalink
無効な支払方法で購入手続きを通過できる EC-CUBE#82
Browse files Browse the repository at this point in the history
  • Loading branch information
seasoftjapan committed Jan 12, 2016
1 parent c0f2dfa commit 25fdf37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/class/pages/shopping/LC_Page_Shopping_Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,19 @@ public function lfRegistData($uniqid, $arrForm, &$objPurchase, $arrPayment)
$arrForm['use_point'] = 0;
}

$find = false;
foreach ($arrPayment as $payment) {
if ($arrForm['payment_id'] == $payment['payment_id']) {
$arrForm['charge'] = $payment['charge'];
$arrForm['payment_method'] = $payment['payment_method'];
$find = true;
break;
}
}
if (!$find) {
trigger_error('無効な支払方法: ' . var_export($arrForm['payment_id'], true), E_USER_ERROR);
}

$objPurchase->saveOrderTemp($uniqid, $arrForm);
}

Expand Down

0 comments on commit 25fdf37

Please sign in to comment.