Skip to content

Commit

Permalink
Create sale fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcjackson18 committed Sep 16, 2020
1 parent 8053587 commit ea3602e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/gateways/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public function purchase(Transaction $transaction, BasePaymentForm $form): Reque
}
}

$result = $this->sale($data);
$result = $this->createSale($data);

//Craft::dd($result);

Expand Down

0 comments on commit ea3602e

Please sign in to comment.