- def get_absolute_url(self):
- return reverse('funding_funding', args=[self.pk])
+ def get_amount(self):
+ return self.amount
+
+ def get_buyer(self):
+ return {
+ "email": self.email,
+ "language": self.language_code,
+ }
+
+ def get_description(self):
+ return self.offer.get_payu_payment_title()
+
+ def get_thanks_url(self):
+ return reverse('funding_thanks')
+
+ def status_updated(self):
+ if self.status == 'COMPLETED':
+ if self.email:
+ self.notify(
+ _('Thank you for your support!'),
+ 'funding/email/thanks.txt'
+ )
+
+ def get_notify_url(self):
+ return "https://{}{}".format(
+ Site.objects.get_current().domain,
+ reverse('funding_payu_notify', args=[self.pk]))