Plugin Directory

Changeset 2334669


Ignore:
Timestamp:
07/03/2020 07:36:02 AM (6 years ago)
Author:
mobipaid
Message:

1.0.3 - 2020-07-03

  • add sku and unit price to payment page.
Location:
mobipaid
Files:
48 added
4 edited

Legend:

Unmodified
Added
Removed
  • mobipaid/trunk/changelog.txt

    r2317410 r2334669  
    1313* add readme for setup.
    1414* change the way of get payment status.
     15
     16= 1.0.3 - 2020-07-03 =
     17* add sku and unit price to payment page.
  • mobipaid/trunk/includes/class-mobipaid.php

    r2317410 r2334669  
    226226
    227227        foreach ( $order->get_items() as $item_id => $item ) {
     228            $product = $item->get_product();
     229            $sku = $product->get_sku();
     230            if ( !$sku ) {
     231                $sku = '-';
     232            }
     233            $item_total  = isset( $item['recurring_line_total'] ) ? $item['recurring_line_total'] : $order->get_item_total( $item );
     234
    228235            $cart_items[] = array(
    229                 'name' => $item->get_name(),
    230                 'qty'  => $item->get_quantity(),
     236                'sku'        => $sku,
     237                'name'       => $item->get_name(),
     238                'qty'        => $item->get_quantity(),
     239                'unit_price' => $item_total
    231240            );
    232241        }
  • mobipaid/trunk/mobipaid.php

    r2317410 r2334669  
    44 * Plugin URI:           https://github.com/MobipaidLLC/mobipaid-woocommerce
    55 * Description:          Receive payments using Mobipaid.
    6  * Version:              1.0.2
     6 * Version:              1.0.3
    77 * Requires at least:    5.0
    88 * Tested up to:         5.3.2
     
    2424}
    2525
    26 define( 'MOBIPAID_PLUGIN_VERSION', '1.0.2' );
     26define( 'MOBIPAID_PLUGIN_VERSION', '1.0.3' );
    2727
    2828register_activation_hook( __FILE__, 'mobipaid_activate_plugin' );
  • mobipaid/trunk/readme.txt

    r2317410 r2334669  
    66Tested up to: 5.3.2
    77Requires PHP: 7.0
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    109109* add readme for setup.
    110110* change the way of get payment status.
     111
     112= 1.0.3 - 2020-07-03 =
     113* add sku and unit price to payment page.
Note: See TracChangeset for help on using the changeset viewer.