Skip to content

Commit

Permalink
Most important patch for fixing exchange rates in IPN posts
Browse files Browse the repository at this point in the history
PayPal uses an unspecified amount of decimals when returning
an IPN with an exchange rate - this takes that into account!

ALTER TABLE paypal_ipn ALTER COLUMN exchange_rate TYPE numeric(64, 16);

Signed-off-by: John Boxall <[email protected]>
  • Loading branch information
Markus Törnqvist authored and John Boxall committed May 16, 2009
1 parent d517dfd commit 3ff490f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standard/models.py
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ class PayPalStandardBase(models.Model):
auth_exp = models.CharField(max_length=28, blank=True)
auth_id = models.CharField(max_length=19, blank=True)
auth_status = models.CharField(max_length=9, blank=True)
exchange_rate = models.DecimalField(max_digits=64, decimal_places=2, default=0, blank=True, null=True)
exchange_rate = models.DecimalField(max_digits=64, decimal_places=16, default=0, blank=True, null=True)
invoice = models.CharField(max_length=127, blank=True)
item_name = models.CharField(max_length=127, blank=True)
item_number = models.CharField(max_length=127, blank=True)

0 comments on commit 3ff490f

Please sign in to comment.