paymentError:gwm
This commit is contained in:
parent
98706d41cf
commit
b26f6ce5f1
@ -330,13 +330,7 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
|
||||
|
||||
<input type="text" name="pincode" id="pincode" value="<?= $userdata[0]['pincode']; ?>" required>
|
||||
<span id="pincode_span_message"> </span>
|
||||
<!-- <select name="pincode" id="pincode" class="js-example-basic-single">
|
||||
|
||||
<option value="<?= $userdata[0]['pincode']; ?>"><?= $userdata[0]['zipcode']; ?></option>
|
||||
|
||||
<?= $zipcode ?>
|
||||
|
||||
</select> -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ async function CardPay(fieldEl, buttonEl) {
|
||||
try {
|
||||
|
||||
const result = await card.tokenize();
|
||||
|
||||
// console.log(result);
|
||||
if (result.status === 'OK') {
|
||||
$('#loading-spinner-overlay').css('visibility', 'visible');
|
||||
// Use global method from sq-payment-flow.js
|
||||
@ -31,7 +31,9 @@ async function CardPay(fieldEl, buttonEl) {
|
||||
}
|
||||
} catch (e) {
|
||||
if (e.message) {
|
||||
window.showError(`Error: ${e.message}`);
|
||||
// console.log(e.message);
|
||||
// window.showError(`Error: ${e.message}`);
|
||||
window.showError(`The request is already in process`);
|
||||
} else {
|
||||
window.showError('Something went wrong');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user