From ea3602e3145bf845ee8a7f1a46e7927f768400df Mon Sep 17 00:00:00 2001 From: Mark Jackson Date: Wed, 16 Sep 2020 09:29:59 +0100 Subject: [PATCH] Create sale fix --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/gateways/Gateway.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3edb995..c1ef712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 2.3.8 - 2020-09-16 +### Fixed +- Fixed a bug where purchases weren't using the createSale method + ## 2.3.7 - 2020-09-16 ### Added - Created a refreshPaymentHistory method so the full subscription payment history can be view in the CP using the "Refresh payment history" button. diff --git a/composer.json b/composer.json index 8dc75b9..2c046c1 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "kuriousagency/commerce-braintree", "description": "Braintree gateway for Craft Commerce", "type": "craft-plugin", - "version": "2.3.7", + "version": "2.3.8", "keywords": [ "craft", "cms", diff --git a/src/gateways/Gateway.php b/src/gateways/Gateway.php index 67f5b3d..c1c70a0 100644 --- a/src/gateways/Gateway.php +++ b/src/gateways/Gateway.php @@ -327,7 +327,7 @@ public function purchase(Transaction $transaction, BasePaymentForm $form): Reque } } - $result = $this->sale($data); + $result = $this->createSale($data); //Craft::dd($result);