def post(self, request, *args, **kwargs):
form = self.form_class(request.POST) if form.is_valid():
card_number = request.POST.get('card_number') Payment.objects.charge_credit_card(Decimal ('27.55'), card_number, request.POST) return HttpResponseRedirect('/success/') return render(request, self.template_name, {'form': form})
I'm i litle lost here , i know that the form pass the credit card but we can see in the error authorizenet raise an error. someone help if possible !! thanks!
โ04-14-2020 02:37 PM