Skip to content

Commit

Permalink
subscription only force hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu authored and SoleeChoi committed Aug 13, 2021
1 parent 72d2ff2 commit d9607ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iamport-naverpay-ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ private function doPayment($creds, $order, $total, $customer_uid, $number_of_tri
$order_suffix = $is_initial_payment ? '_sf' : date('md');//빌링키 발급때 사용된 merchant_uid중복방지
$tax_free_amount = IamportHelper::get_tax_free_amount($order);
$notice_url = IamportHelper::get_notice_url();
$_extra = array(
'naverUseCfm' => '20990101'
);

$iamport = new WooIamport($creds['imp_rest_key'], $creds['imp_rest_secret']);
$pay_data = array(
Expand All @@ -421,7 +424,8 @@ private function doPayment($creds, $order, $total, $customer_uid, $number_of_tri
'name' => $this->get_order_name($order, $is_initial_payment),
'buyer_name' => trim($order->get_billing_last_name() . $order->get_billing_first_name()),
'buyer_email' => $order->get_billing_email(),
'buyer_tel' => $order->get_billing_phone()
'buyer_tel' => $order->get_billing_phone(),
'extra' => $_extra
);
if ( empty($pay_data["buyer_name"]) ) $pay_data["buyer_name"] = $this->get_default_user_name();
if ( wc_tax_enabled() ) $pay_data["tax_free"] = $tax_free_amount;
Expand Down

0 comments on commit d9607ba

Please sign in to comment.