Plugin Directory

Changeset 3045514


Ignore:
Timestamp:
03/05/2024 09:54:43 AM (2 years ago)
Author:
aplazame
Message:

tagging version v4.0.1

Location:
aplazame
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • aplazame/tags/v4.0.1/README.txt

    r3041163 r3045514  
    55Tested up to: 6.4.3
    66Requires PHP: 5.3.0
    7 Stable tag: 3.9.0
     7Stable tag: 4.0.1
    88License: BSD-3-Clause
    99License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE
     
    7878== Changelog ==
    7979
     80#### [v4.0.1](https://github.com/aplazame/woocommerce/tree/v4.0.1) (2024-03-05)
     81
     82* Order confirmation process improved.
     83
    8084#### [v4.0.0](https://github.com/aplazame/woocommerce/tree/v4.0.0) (2024-02-26)
    8185
  • aplazame/tags/v4.0.1/aplazame.php

    r3041163 r3045514  
    33 * Plugin Name: Aplazame
    44 * Plugin URI: https://github.com/aplazame/woocommerce
    5  * Version: 4.0.0
     5 * Version: 4.0.1
    66 * Description: Aplazame offers a payment method to receive funding for the purchases.
    77 * Author: Aplazame
     
    2626
    2727class WC_Aplazame {
    28     const VERSION      = '4.0.0';
     28    const VERSION      = '4.0.1';
    2929    const METHOD_ID    = 'aplazame';
    3030    const METHOD_TITLE = 'Aplazame';
  • aplazame/tags/v4.0.1/classes/api/Aplazame_Api_ConfirmController.php

    r2454923 r3045514  
    5353
    5454        switch ( $payload['status'] ) {
    55             case 'pending':
    56                 switch ( $payload['status_reason'] ) {
    57                     case 'confirmation_required':
    58                         if ( method_exists( $order, 'payment_complete' ) ) {
    59                             if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
    60                                 $order->payment_complete();
    61                                 break;
    62                             }
    63                             if ( ! $order->payment_complete() ) {
    64                                 return self::ko( "'payment_complete' function failed" );
    65                             }
    66                         } else {
    67                             $order->update_status( 'processing', sprintf( __( 'Confirmed', 'aplazame' ) ) );
    68                         }
     55            case 'ok':
     56                if ( method_exists( $order, 'payment_complete' ) ) {
     57                    if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
     58                        $order->payment_complete();
    6959                        break;
     60                    }
     61                    if ( ! $order->payment_complete() ) {
     62                        return self::ko( "'payment_complete' function failed" );
     63                    }
     64                } else {
     65                    $order->update_status( 'processing', sprintf( __( 'Confirmed', 'aplazame' ) ) );
    7066                }
    7167                break;
  • aplazame/trunk/README.txt

    r3041163 r3045514  
    55Tested up to: 6.4.3
    66Requires PHP: 5.3.0
    7 Stable tag: 3.9.0
     7Stable tag: 4.0.1
    88License: BSD-3-Clause
    99License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE
     
    7878== Changelog ==
    7979
     80#### [v4.0.1](https://github.com/aplazame/woocommerce/tree/v4.0.1) (2024-03-05)
     81
     82* Order confirmation process improved.
     83
    8084#### [v4.0.0](https://github.com/aplazame/woocommerce/tree/v4.0.0) (2024-02-26)
    8185
  • aplazame/trunk/aplazame.php

    r3041163 r3045514  
    33 * Plugin Name: Aplazame
    44 * Plugin URI: https://github.com/aplazame/woocommerce
    5  * Version: 4.0.0
     5 * Version: 4.0.1
    66 * Description: Aplazame offers a payment method to receive funding for the purchases.
    77 * Author: Aplazame
     
    2626
    2727class WC_Aplazame {
    28     const VERSION      = '4.0.0';
     28    const VERSION      = '4.0.1';
    2929    const METHOD_ID    = 'aplazame';
    3030    const METHOD_TITLE = 'Aplazame';
  • aplazame/trunk/classes/api/Aplazame_Api_ConfirmController.php

    r2454923 r3045514  
    5353
    5454        switch ( $payload['status'] ) {
    55             case 'pending':
    56                 switch ( $payload['status_reason'] ) {
    57                     case 'confirmation_required':
    58                         if ( method_exists( $order, 'payment_complete' ) ) {
    59                             if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
    60                                 $order->payment_complete();
    61                                 break;
    62                             }
    63                             if ( ! $order->payment_complete() ) {
    64                                 return self::ko( "'payment_complete' function failed" );
    65                             }
    66                         } else {
    67                             $order->update_status( 'processing', sprintf( __( 'Confirmed', 'aplazame' ) ) );
    68                         }
     55            case 'ok':
     56                if ( method_exists( $order, 'payment_complete' ) ) {
     57                    if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
     58                        $order->payment_complete();
    6959                        break;
     60                    }
     61                    if ( ! $order->payment_complete() ) {
     62                        return self::ko( "'payment_complete' function failed" );
     63                    }
     64                } else {
     65                    $order->update_status( 'processing', sprintf( __( 'Confirmed', 'aplazame' ) ) );
    7066                }
    7167                break;
Note: See TracChangeset for help on using the changeset viewer.