Skip to content

Instantly share code, notes, and snippets.

@willcalderbank
Created September 20, 2013 08:27
Show Gist options
  • Save willcalderbank/6634716 to your computer and use it in GitHub Desktop.
Save willcalderbank/6634716 to your computer and use it in GitHub Desktop.
class AdyenNotifcation():
event_code = models.CharField(
max_length=30, blank=True, null=True,
)
created_on = models.DateTimeField(
default=datetime.datetime.utcnow,
help_text=_('Date and time the notification was created in UTC.')
)
original_transaction = models.ForeignKey(
AdyenTransaction, blank=True, null=True,
help_text=_('The Transaction the notification belongs to.')
)
psp_reference = models.CharField(
max_length=20, blank=True, null=True,
help_text=_("Adyen's transaction reference.")
)
is_successful = models.BooleanField(
default=False,
help_text=_(
"Is the notification notifying us of a successful transaction"
)
)
response = JSONField(blank=True, help_text=_('Ayden Notification'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment