Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] payment_stripe: charge creation failed
To reproduce: - Buy a product costing 0.01 - Validate the cart, pay with Stripe - Enter the credit card info, validate Stripe cannot process the transaction (minimum charge is not met), but the user is not warned about it. The Stripe pop-up is closed and the error is recorded in the console silently. opw-765775
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
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
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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<templates id="template" xml:space="preserve"> | ||
<t t-name="stripe.error"> | ||
<div class="modal fade"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> | ||
<h4 class="modal-title">Error</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<t t-esc="msg"></t> | ||
</div> | ||
<div class="modal-footer"> | ||
<a href="#" class="btn btn-link btn-xs" data-dismiss="modal">Close</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</t> | ||
</templates> |