shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-18 17:59:55 +09:00
parent a61b8ca77f
commit c11ef6cba8
2 changed files with 9 additions and 8 deletions

View File

@ -208,10 +208,11 @@ define("MALLS", [
"support" => "support@idcjp.jp",
"master" => "master@idcjp.jp",
"title" => "Mall Master",
'card' => "TEST",
"banks" => [
["name" => "신한은행", "account" => "계좌번호", "holder" => "예금주"],
["name" => "국민은행", "account" => "계좌번호1", "holder" => "예금주1"],
]
],
]);
//Upload , Download 관련

View File

@ -103,14 +103,10 @@ class CardController extends BillingController
//Update관련
//카드결제처리
private function pg_process($isTest): string
private function pg_process(): string
{
$response = "";
if ($isTest) {
foreach ($this->_viewDatas['fieldDatas'] as $key => $value) {
$response .= "{$key}:{$value}\n";
}
} else {
if (MALLS['card'] == "REAL") {
//PG사 결제후 정보저장
$adapter = new PaymentAdapter();
$adapter->setDatas($this->_viewDatas['fieldDatas']);
@ -118,13 +114,17 @@ class CardController extends BillingController
foreach ($result as $key => $value) {
$response .= "{$key}:{$value}\n";
}
} else {
foreach ($this->_viewDatas['fieldDatas'] as $key => $value) {
$response .= "{$key}:{$value}\n";
}
}
return $response;
}
protected function update_process($entity)
{
//카드결제
$this->_viewDatas['fieldDatas']["response"] = $this->pg_process(true);
$this->_viewDatas['fieldDatas']["response"] = $this->pg_process();
//Card 결제처리
$this->_viewDatas['fieldDatas']["type"] = $this->_viewDatas['className'];
$this->_viewDatas['fieldDatas']["status"] = DEFAULTS['STATUS'];