django-oscar

How to add few payment methods to django-oscar

你。 提交于 2019-12-03 09:05:58
I already add cash_on_delivery payment method to my project. But i want to add one more method. How i can do it. At this moment i have code of checkout views like this: class PaymentDetailsView(PaymentDetailsView): template_name = 'checkout/payment-details.html' template_name_preview = 'checkout/preview.html' def get_context_data(self, **kwargs): ctx = super(PaymentDetailsView, self).get_context_data(**kwargs) ctx['signature'] = gateway.hmac_gen(ctx) ctx['amount'] = '%s' % ctx['order_total'].incl_tax ctx['price'] = '%s' % ctx['basket'].lines.all()[0].price_incl_tax ctx['source'] = ctx return

Integrating a payment gateway with Django-Oscar?

↘锁芯ラ 提交于 2019-12-03 09:00:27
问题 I want to integrate a payment gateway with oscar. I have integrated oscar-paypal it works fine. Should I follow oscar-paypal and try to emulate it ? This document doesn't gives the starting information but not exactly ? I need this. To create order, change basket status, make payments, send email, and many other steps that oscar-paypal is doing. 回答1: I think you can use payu which is also very easyily available and can be customized. pip install git+https://github.com/SalahAdDin/django-oscar

Integrating a payment gateway with Django-Oscar?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 00:36:28
I want to integrate a payment gateway with oscar. I have integrated oscar-paypal it works fine. Should I follow oscar-paypal and try to emulate it ? This document doesn't gives the starting information but not exactly ? I need this. To create order, change basket status, make payments, send email, and many other steps that oscar-paypal is doing. I think you can use payu which is also very easyily available and can be customized. pip install git+https://github.com/SalahAdDin/django-oscar-payu#egg=payu this would clone the payu application which has similar implementation as oscar-paypal. then