Coverage for /home/tribaal/workspace/django-shop/shop/payment/backends/pay_on_delivery : 100.00%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*-
# This is the shop reference, it allows this backend to interact with # it in a tidy way (look ma', no imports!)
def simple_view(self, request): """ This simple view does nothing but record the "payment" as being complete since we trust the delivery guy to collect money, and redirect to the success page. This is the most simple case. """ # Get the order object # Let's mark this as being complete for the full sum in our database # Set it as paid (it needs to be paid to the delivery guy, we assume # he does his job properly) the_order, self.shop.get_order_total(the_order), "None", self.backend_name)
url(r'^$', self.simple_view, name='pay-on-delivery'), ) |