Changeset 3045514
- Timestamp:
- 03/05/2024 09:54:43 AM (2 years ago)
- Location:
- aplazame
- Files:
-
- 6 edited
- 1 copied
-
tags/v4.0.1 (copied) (copied from aplazame/trunk)
-
tags/v4.0.1/README.txt (modified) (2 diffs)
-
tags/v4.0.1/aplazame.php (modified) (2 diffs)
-
tags/v4.0.1/classes/api/Aplazame_Api_ConfirmController.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/aplazame.php (modified) (2 diffs)
-
trunk/classes/api/Aplazame_Api_ConfirmController.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
aplazame/tags/v4.0.1/README.txt
r3041163 r3045514 5 5 Tested up to: 6.4.3 6 6 Requires PHP: 5.3.0 7 Stable tag: 3.9.07 Stable tag: 4.0.1 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 78 78 == Changelog == 79 79 80 #### [v4.0.1](https://github.com/aplazame/woocommerce/tree/v4.0.1) (2024-03-05) 81 82 * Order confirmation process improved. 83 80 84 #### [v4.0.0](https://github.com/aplazame/woocommerce/tree/v4.0.0) (2024-02-26) 81 85 -
aplazame/tags/v4.0.1/aplazame.php
r3041163 r3045514 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 4.0. 05 * Version: 4.0.1 6 6 * Description: Aplazame offers a payment method to receive funding for the purchases. 7 7 * Author: Aplazame … … 26 26 27 27 class WC_Aplazame { 28 const VERSION = '4.0. 0';28 const VERSION = '4.0.1'; 29 29 const METHOD_ID = 'aplazame'; 30 30 const METHOD_TITLE = 'Aplazame'; -
aplazame/tags/v4.0.1/classes/api/Aplazame_Api_ConfirmController.php
r2454923 r3045514 53 53 54 54 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(); 69 59 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' ) ) ); 70 66 } 71 67 break; -
aplazame/trunk/README.txt
r3041163 r3045514 5 5 Tested up to: 6.4.3 6 6 Requires PHP: 5.3.0 7 Stable tag: 3.9.07 Stable tag: 4.0.1 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 78 78 == Changelog == 79 79 80 #### [v4.0.1](https://github.com/aplazame/woocommerce/tree/v4.0.1) (2024-03-05) 81 82 * Order confirmation process improved. 83 80 84 #### [v4.0.0](https://github.com/aplazame/woocommerce/tree/v4.0.0) (2024-02-26) 81 85 -
aplazame/trunk/aplazame.php
r3041163 r3045514 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 4.0. 05 * Version: 4.0.1 6 6 * Description: Aplazame offers a payment method to receive funding for the purchases. 7 7 * Author: Aplazame … … 26 26 27 27 class WC_Aplazame { 28 const VERSION = '4.0. 0';28 const VERSION = '4.0.1'; 29 29 const METHOD_ID = 'aplazame'; 30 30 const METHOD_TITLE = 'Aplazame'; -
aplazame/trunk/classes/api/Aplazame_Api_ConfirmController.php
r2454923 r3045514 53 53 54 54 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(); 69 59 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' ) ) ); 70 66 } 71 67 break;
Note: See TracChangeset
for help on using the changeset viewer.