Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate charge subscription attempts for MobilePay payments. #113

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

## [3.7.4]
- Fix: Prevent duplicate charge subscription attempts for MobilePay payments.

## [3.7.3]
- Fix: Payment charged multiple times for subscription order.

Expand Down
6 changes: 3 additions & 3 deletions altapay.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
* Author URI: https://altapay.com
* Text Domain: altapay
* Domain Path: /languages
* Version: 3.7.3
* Version: 3.7.4
* Name: SDM_Altapay
* WC requires at least: 3.9.0
* WC tested up to: 9.3.3
* WC tested up to: 9.4.2
*
* @package Altapay
*/
Expand Down Expand Up @@ -41,7 +41,7 @@
}

if ( ! defined( 'ALTAPAY_PLUGIN_VERSION' ) ) {
define( 'ALTAPAY_PLUGIN_VERSION', '3.7.3' );
define( 'ALTAPAY_PLUGIN_VERSION', '3.7.4' );
}

// Include the autoloader, so we can dynamically include the rest of the classes.
Expand Down
2 changes: 1 addition & 1 deletion classes/core/AltapaySettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function altapayOrderStatusCompleted( $orderID ) {
$api->setTransaction( $txnID );

$response = $api->call();
if ( $response->Result !== 'Success' ) {
if ( $response && ! in_array( $response->Result, array( 'Success', 'Open' ), true ) ) {
$order->add_order_note(
__(
'Capture failed: ' . $response->MerchantErrorMessage,
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Tags: AltaPay, Gateway, Payments, WooCommerce, Payment Card Industry
Requires PHP: 7.4
Requires at least: 5.0
Tested up to: 6.6.2
Stable tag: 3.7.3
Stable tag: 3.7.4
License: MIT
WC requires at least: 3.9.0
WC tested up to: 9.3.3
WC tested up to: 9.4.2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A plugin that integrates your WooCommerce web shop to the AltaPay payments gateway.
Expand Down Expand Up @@ -39,6 +39,9 @@ AltaPay's Payment Gateway for WooCommerce provides merchants with access to a fu

== Changelog ==

= 3.7.4 =
* Fix: Prevent duplicate charge subscription attempts for MobilePay payments.

= 3.7.3 =
* Fix: Payment charged multiple times for subscription order.

Expand Down
4 changes: 2 additions & 2 deletions wiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ In order to reconcile payments please follow the steps below:

Minimum system requirements are:
- WordPress min. 5.0 – max. 6.6.2
- WooCommerce min. 3.9.0 – max. 9.3.3
- WooCommerce min. 3.9.0 – max. 9.4.2
- PHP 7.4 and above
- PHP-bcmath library installed.
- PHP-curl MUST be enabled.

The latest tested version is:
- WordPress 6.6.2, WooCommerce 9.3.3 and PHP 8.1
- WordPress 6.6.2, WooCommerce 9.4.2 and PHP 8.1


## Troubleshooting
Expand Down
Loading