Skip to content

Commit 10675da

Browse files
committed
Fix: dispHotopayOrderPage에서 password_keys 누락 해결
1 parent fc5cca0 commit 10675da

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

hotopay.view.php

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,27 @@ public function dispHotopayOrderPage()
166166
throw new \Rhymix\Framework\Exception('정기결제 상품과 일반결제 상품을 동시에 구매할 수 없습니다.');
167167
}
168168

169+
$filtered_password_keys = array();
170+
$filtered_billing_keys = array();
171+
172+
$billing_keys = HotopayModel::getBillingKeys($this->user->member_srl);
173+
foreach ($billing_keys as $key)
174+
{
175+
if ($key->type == 'password')
176+
{
177+
$filtered_password_keys[] = $key;
178+
}
179+
else if ($key->type == 'billing')
180+
{
181+
$filtered_billing_keys[] = $key;
182+
}
183+
}
184+
185+
Context::set('password_keys', $filtered_password_keys);
186+
Context::set('billing_keys', $filtered_billing_keys);
187+
169188
if ($is_billing_product_exist)
170189
{
171-
$billing_keys = HotopayModel::getBillingKeys($this->user->member_srl);
172-
Context::set('billing_keys', $billing_keys);
173190
Context::set('purchase_type', 'billing');
174191
}
175192
else

0 commit comments

Comments
 (0)