2016-09-21 10:24:26 +10:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models
|
2016-09-21 13:16:59 +10:00
|
|
|
from registrasion.models import commerce
|
|
|
|
from pinax.stripe.models import Charge
|
2016-09-21 10:24:26 +10:00
|
|
|
|
2016-09-21 13:16:59 +10:00
|
|
|
|
|
|
|
class StripePayment(commerce.PaymentBase):
|
|
|
|
|
|
|
|
charge = models.ForeignKey(Charge)
|
2016-09-23 16:42:47 +10:00
|
|
|
|
2017-04-22 19:06:30 +10:00
|
|
|
|
2016-09-23 16:42:47 +10:00
|
|
|
class StripeCreditNoteRefund(commerce.CreditNoteRefund):
|
|
|
|
|
|
|
|
charge = models.ForeignKey(Charge)
|