-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid returning Stripe error message when capturing more than order a…
…mount (#7581)
- Loading branch information
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...og/update-7029-avoid-returning-stripe-error-message-when-capturing-more-than-order-amount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: fix | ||
|
||
Redact Stripe support contact prompt from error message when capturing amounts greater than authorized. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* Class Amount_Too_Large_Exception | ||
* | ||
* @package WooCommerce\Payments | ||
*/ | ||
|
||
namespace WCPay\Exceptions; | ||
|
||
defined( 'ABSPATH' ) || exit; | ||
|
||
/** | ||
* Class representing Amount_Too_Large_Exception | ||
*/ | ||
class Amount_Too_Large_Exception extends API_Exception { | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param string $message The Exception message to throw. | ||
* @param int $http_code HTTP response code. | ||
*/ | ||
public function __construct( $message, $http_code ) { | ||
parent::__construct( $message, 'amount_too_large', $http_code, null, null ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters