Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
luchaos committed Oct 16, 2019
2 parents ca0afb2 + 8ef1b85 commit 6d12ded
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## v1.4.0 (2019-10-16)
### Changed
- Display error to user on any payment errors
### Fixed
- Decode HTML entities in stored password option

## v1.3.0 (2019-09-30)
### Added
- Preauthorize/Capture/Void transaction request option
Expand Down
3 changes: 2 additions & 1 deletion src/classes/includes/payment-gateway-cloud-creditcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function process_payment($orderId)
PaymentGatewayCloud\Client\Client::setApiUrl($this->get_option('apiHost'));
$client = new PaymentGatewayCloud\Client\Client(
$this->get_option('apiUser'),
$this->get_option('apiPassword'),
htmlspecialchars_decode($this->get_option('apiPassword')),
$this->get_option('apiKey'),
$this->get_option('sharedSecret')
);
Expand Down Expand Up @@ -191,6 +191,7 @@ public function process_payment($orderId)
private function paymentFailedResponse()
{
$this->order->update_status('failed', __('Payment failed or was declined', 'woocommerce'));
wc_add_notice(__('Payment failed or was declined', 'woocommerce'), 'error');
return [
'result' => 'error',
'redirect' => $this->get_return_url($this->order),
Expand Down

0 comments on commit 6d12ded

Please sign in to comment.