1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

[bug] in case of unexpected server error during stripe payment process, the confirm button is not unlocked

This commit is contained in:
Sylvain 2019-09-19 15:00:27 +02:00
parent a7dc3b2431
commit 668eb43959
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
- Ability to configure and export the accounting data to the ACD accounting software
- Compute the VAT per item in each invoices, instead of globally
- Fix a bug: invoices with total = 0, are marked as paid on site even if paid by card
- Fix a bug: in case of unexpected server error during stripe payment process, the confirm button is not unlocked
- [TODO DEPLOY] `rake db:migrate`
## v4.1.0 2019 September 12

View File

@ -63,7 +63,7 @@ Application.Directives.directive('stripeForm', ['Payment', 'growl', '_t',
Payment.confirm({ payment_method_id: paymentMethod.id, cart_items: $scope.cartItems }, function (response) {
// Handle server response (see Step 3)
handleServerResponse(response, button);
}, function(error) { handleServerResponse({ error }) });
}, function(error) { handleServerResponse({ error }, button) });
}
});
});
@ -89,7 +89,7 @@ Application.Directives.directive('stripeForm', ['Payment', 'growl', '_t',
// The PaymentIntent can be confirmed again on the server
Payment.confirm({ payment_intent_id: result.paymentIntent.id, cart_items: $scope.cartItems }, function(confirmResult) {
handleServerResponse(confirmResult, confirmButton);
}, function(error) { handleServerResponse({ error }) });
}, function(error) { handleServerResponse({ error }, confirmButton) });
}
});
} else {