Skip to content

Commit

Permalink
Fix Indentation and remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudrakshi Gupta authored and Rudrakshi Gupta committed Nov 18, 2024
1 parent 0d98dc0 commit ea4bf0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/class-wc-gateway-checkout-com-paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public function handle_wc_api() {
}
break;

case 'empty_session':
error_log(print_r($_SESSION,true));
case 'empty_session':
WC_Checkoutcom_Utility::cko_set_session( 'cko_paypal_order_id', '' );
WC_Checkoutcom_Utility::cko_set_session( 'cko_pc_id', '' );

Expand Down Expand Up @@ -540,7 +539,7 @@ public function payment_scripts() {

$vars = [
'create_order_url' => add_query_arg( [ 'cko_paypal_action' => 'create_order' ], WC()->api_request_url( 'CKO_Paypal_Woocommerce' ) ),
'clear_session_url' => add_query_arg( [ 'cko_paypal_action' => 'empty_session' ], WC()->api_request_url( 'CKO_Paypal_Woocommerce' ) ),
'clear_session_url' => add_query_arg( [ 'cko_paypal_action' => 'empty_session' ], WC()->api_request_url( 'CKO_Paypal_Woocommerce' ) ),
'cc_capture' => add_query_arg( [ 'cko_paypal_action' => 'cc_capture' ], WC()->api_request_url( 'CKO_Paypal_Woocommerce' ) ),
'woocommerce_process_checkout' => wp_create_nonce( 'woocommerce-process_checkout' ),
'is_cart_contains_subscription' => WC_Checkoutcom_Utility::is_cart_contains_subscription(),
Expand Down

0 comments on commit ea4bf0f

Please # to comment.