Skip to content

Commit

Permalink
debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu authored and SoleeChoi committed Aug 13, 2021
1 parent d9607ba commit 8422ba6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iamport-kakao.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function scheduled_subscription_payment( $amount_to_charge, $renewal_orde

global $wpdb;

error_log('######## SCHEDULED ########');
error_log('######## SCHEDULED ########', 3, "/var/log/apache2/php_error.log");
$creds = $this->getRestInfo(null, false); //this->imp_rest_key, this->imp_rest_secret사용하도록
$customer_uid = IamportHelper::get_customer_uid( $renewal_order );
$response = $this->doPayment($creds, $renewal_order, $amount_to_charge, $customer_uid, $renewal_order->suspension_count );
Expand Down
3 changes: 2 additions & 1 deletion iamport-naverpay-ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ public function iamport_order_detail( $order_id ) {

public function iamport_payment_info( $order_id ) {
$response = parent::iamport_payment_info($order_id);
error_log("abc", 3, "/var/log/apache2/php_error.log");

$order = new WC_Order( $order_id );
//naverProducts 생성
Expand Down Expand Up @@ -342,7 +343,7 @@ public function scheduled_subscription_payment( $amount_to_charge, $renewal_orde

global $wpdb;

error_log('######## SCHEDULED ########');
error_log('######## SCHEDULED ########', 3, "/var/log/apache2/php_error.log");
$creds = $this->getRestInfo(null, false); //this->imp_rest_key, this->imp_rest_secret사용하도록
$customer_uid = IamportHelper::get_customer_uid( $renewal_order );
$response = $this->doPayment($creds, $renewal_order, $amount_to_charge, $customer_uid, $renewal_order->suspension_count );
Expand Down
4 changes: 2 additions & 2 deletions lib/iamport.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function sbcr_onetime($data)
try {
$access_token = $this->getAccessCode();

$keys = array_flip(array('merchant_uid', 'amount', 'tax_free', 'vat', 'card_number', 'expiry', 'birth', 'pwd_2digit', 'card_quota', 'customer_uid', 'name', 'buyer_name', 'buyer_email', 'buyer_tel', 'notice_url'));
$keys = array_flip(array('merchant_uid', 'amount', 'tax_free', 'vat', 'card_number', 'expiry', 'birth', 'pwd_2digit', 'card_quota', 'customer_uid', 'name', 'buyer_name', 'buyer_email', 'buyer_tel', 'notice_url', 'extra'));
$onetime_data = array_intersect_key($data, $keys);

$response = $this->postResponse(
Expand All @@ -206,7 +206,7 @@ public function sbcr_again($data)
try {
$access_token = $this->getAccessCode();

$keys = array_flip(array('merchant_uid', 'amount', 'tax_free', 'vat', 'customer_uid', 'name', 'buyer_name', 'buyer_email', 'buyer_tel', 'notice_url'));
$keys = array_flip(array('merchant_uid', 'amount', 'tax_free', 'vat', 'customer_uid', 'name', 'buyer_name', 'buyer_email', 'buyer_tel', 'notice_url', 'extra'));
$onetime_data = array_intersect_key($data, $keys);

$response = $this->postResponse(
Expand Down

0 comments on commit 8422ba6

Please sign in to comment.