File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments