Django Oscar - 在结帐过程中跳过付款详细信息过程
Django Oscar - In checkout process payment details process is getting skipped
我在 django-oscar 中有一个小型电子商务项目。
在我的结帐过程中 付款详细信息过程 被跳过,我还没有分叉 oscar 结帐应用程序仍然收到此错误。
我的控制台响应
[17/Dec/2018 18:37:57] "GET /checkout/payment-method/ HTTP/1.1" 302 0
为什么重定向到 付款预览页面?
任何解决方案或建议
您必须根据 a comment the source 对 oscar.apps.checkout.view.PaymentMethodView 进行子类化:
class PaymentMethodView(CheckoutSessionMixin, generic.TemplateView):
...
def get(self, request, *args, **kwargs):
# By default we redirect straight onto the payment details view. Shops
# that require a choice of payment method may want to override this
# method to implement their specific logic.
return self.get_success_response()
(如果您已经创建了一个子类,post 您的代码)
我在 django-oscar 中有一个小型电子商务项目。 在我的结帐过程中 付款详细信息过程 被跳过,我还没有分叉 oscar 结帐应用程序仍然收到此错误。
我的控制台响应
[17/Dec/2018 18:37:57] "GET /checkout/payment-method/ HTTP/1.1" 302 0
为什么重定向到 付款预览页面?
任何解决方案或建议
您必须根据 a comment the source 对 oscar.apps.checkout.view.PaymentMethodView 进行子类化:
class PaymentMethodView(CheckoutSessionMixin, generic.TemplateView):
...
def get(self, request, *args, **kwargs):
# By default we redirect straight onto the payment details view. Shops
# that require a choice of payment method may want to override this
# method to implement their specific logic.
return self.get_success_response()
(如果您已经创建了一个子类,post 您的代码)