Skip to content

Commit

Permalink
Fixed issue with amount total when coupon is used
Browse files Browse the repository at this point in the history
  • Loading branch information
wzul committed Feb 24, 2023
1 parent 7873518 commit 257b74f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chip-for-fluent-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: CHIP for Fluent Forms
* Plugin URI: https://wordpress.org/plugins/chip-for-fluent-forms/
* Description: CHIP - Better Payment & Business Solutions
* Version: 1.0.3
* Version: 1.0.4
* Author: Chip In Sdn Bhd
* Author URI: http://www.chip-in.asia
*
Expand All @@ -16,7 +16,7 @@

if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.

define('FF_CHIP_MODULE_VERSION', 'v1.0.3');
define('FF_CHIP_MODULE_VERSION', 'v1.0.4');

class Chip_Fluent_Forms {

Expand Down
2 changes: 1 addition & 1 deletion includes/class-purchase.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function handlePaymentAction( $submissionId, $submissionData, $form, $met
$this->is_form_currency_supported( strtoupper( $submission->currency ) );

$transactionId = $this->insertTransaction([
'payment_total' => $totalPayable,
'payment_total' => $this->getAmountTotal(),
'status' => 'pending',
'currency' => strtoupper( $submission->currency ),
'payment_method' => 'chip',
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: chipasia, wanzulnet
Tags: chip
Requires at least: 4.7
Tested up to: 6.1
Stable tag: 1.0.3
Stable tag: 1.0.4
Requires PHP: 7.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -27,6 +27,9 @@ This plugin will enable your Fluent Forms site to be integrated with CHIP as per

== Changelog ==

= 1.0.4 - 2023-02-24 =
* Fixed - Issue with payment when using with coupon code.

= 1.0.3 - 2023-02-17 =
* Changed - Reference will be autogenerated.

Expand Down

0 comments on commit 257b74f

Please sign in to comment.