Plugin Directory

Changeset 3262061


Ignore:
Timestamp:
03/26/2025 09:28:44 AM (12 months ago)
Author:
iCount
Message:

iCount v2.0.4 Added payment page redirect with settings configuration

Location:
icount
Files:
87 added
3 edited

Legend:

Unmodified
Added
Removed
  • icount/trunk/icount-payment-gateway.php

    r3246420 r3262061  
    66 * Plugin Name: iCount Payment Gateway
    77 * Description: WooCommerce integration for iCount Payment Gateway.
    8  * Version: 2.0.3
     8 * Version: 2.0.4
    99 * RequiresPHP: 7.4
    1010 * Author: iCount Systems
  • icount/trunk/includes/WC_ICount_Gateway.php

    r3246420 r3262061  
    321321                                    'phone' => $order->get_billing_phone(),
    322322                                    'currency_code' => $order->get_currency(),
     323    'recipient_name'   => trim($order->get_shipping_first_name() . ' ' . $order->get_shipping_last_name()),
     324    'recipient_email'  => $order->get_billing_email(),
     325    'recipient_phone'  => $order->get_billing_phone(),
     326    'recipient_city'   => $order->get_shipping_city(),
     327    'recipient_zip'    => $order->get_shipping_postcode(),
     328    'recipient_state'  => $order->get_shipping_state(),
     329    'recipient_country'=> $order->get_shipping_country(),
     330    'recipient_street1'=> $order->get_shipping_address_1(),
     331    'recipient_street2'=> $order->get_shipping_address_2(),
    323332                                    'delivery_methods' => [],
    324333
     
    984993                                    'email' => $order->get_billing_email(),
    985994                                    'phone' => $order->get_billing_phone(),
     995                                        'recipient_name'   => trim($order->get_shipping_first_name() . ' ' . $order->get_shipping_last_name()),
     996    'recipient_email'  => $order->get_billing_email(),
     997    'recipient_phone'  => $order->get_billing_phone(),
     998    'recipient_city'   => $order->get_shipping_city(),
     999    'recipient_zip'    => $order->get_shipping_postcode(),
     1000    'recipient_state'  => $order->get_shipping_state(),
     1001    'recipient_country'=> $order->get_shipping_country(),
     1002    'recipient_street1'=> $order->get_shipping_address_1(),
     1003    'recipient_street2'=> $order->get_shipping_address_2(),
    9861004                                    'currency_code' => $order->get_currency(),
    9871005                                    'delivery_methods' => [],
     
    10011019                    );     
    10021020       
    1003                     $thankyou_url = esc_url($order->get_checkout_order_received_url());                         
    1004        
     1021        $thankyou_url = esc_url($order->get_checkout_order_received_url());                         
    10051022        $thankyou = wp_parse_url($thankyou_url);
    10061023        $payment = wp_parse_url($payment_url);
     
    10081025        $redir = ($redirect === true) ? 1 : 0;
    10091026       
     1027        $redir_url = '?ic_checkout=' . $pay_url[3] . '&ic_order_id=' . $order_id . '&ic_' . $thankyou['query'] . '&ic_path=' . $thankyou['path'] . '&ic_redir=' . $redir;
     1028        if ($redirect === true)
     1029            $redir_url = $payment_url;
     1030           
    10101031        return [
    10111032            'result'   => 'success',
    1012             'redirect' => '?ic_checkout=' . $pay_url[3] . '&ic_order_id=' . $order_id . '&ic_' . $thankyou['query'] . '&ic_path=' . $thankyou['path'] . '&ic_redir=' . $redir,         
     1033            'redirect' => $redir_url   
    10131034        ];
    10141035       
  • icount/trunk/readme.txt

    r3246420 r3262061  
    44Requires at least: 5.0
    55Tested up to: 6.7.1
    6 Stable tag: 2.0.3
     6Stable tag: 2.0.4
    77Requires PHP: 7.4
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.