Remove unwanted code/comments
This commit is contained in:
parent
ec13a71866
commit
1e67bef4f5
4 changed files with 7 additions and 23 deletions
|
|
@ -211,24 +211,6 @@ $(document).ready(function () {
|
|||
}
|
||||
});
|
||||
window.card = cardNumberElement;
|
||||
/* stripe.confirmCardPayment(
|
||||
window.paymentIntentSecret,
|
||||
{
|
||||
payment_method: {card: cardNumberElement}
|
||||
}
|
||||
).then(function(result) {
|
||||
window.result = result;
|
||||
if (result.error) {
|
||||
// Display error.message in your UI.
|
||||
var errorElement = document.getElementById('card-errors');
|
||||
errorElement.textContent = result.error.message;
|
||||
} else {
|
||||
// The payment has succeeded
|
||||
// Display a success message
|
||||
alert("Thanks for the order. Your product will be provisioned " +
|
||||
"as soon as we receive the payment. Thank you.");
|
||||
}
|
||||
}); */
|
||||
}
|
||||
function payWithStripe_new(e) {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
|
|
@ -677,7 +677,6 @@ class SettingsView(LoginRequiredMixin, FormView):
|
|||
msg = _("Billing address updated successfully")
|
||||
messages.add_message(request, messages.SUCCESS, msg)
|
||||
else:
|
||||
# TODO : Test this flow
|
||||
id_payment_method = request.POST.get('id_payment_method', None)
|
||||
stripe_utils = StripeUtils()
|
||||
card_details = stripe_utils.get_cards_details_from_payment_method(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue