Beispiel #1
0
    def create_charge(self, order):
        charge = create_charge_stripe(order)

        return self.create(user=order.user,
                            order=order,
                            charge_id=charge.id,
                            amount=charge.amount,
                            payment_method=charge.payment_method,
                            status=charge.status)
Beispiel #2
0
    def create_charge(self, order):
        '''Este método se encargará de generar el cargo'''
        charge = create_charge_stripe(order)

        return self.create(
            user=order.user,
            order=order,
            charge_id=charge.id,
            amount=charge.amount,
            payment_method=charge.payment_method,
            status=charge.status
        )