Skip to content

Commit

Permalink
Set correlation ID as payment event reference
Browse files Browse the repository at this point in the history
Related to #32.
  • Loading branch information
codeinthehole committed Aug 13, 2013
1 parent f3b8fdf commit b3840a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paypal/express/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def handle_payment(self, order_number, total_incl_tax, **kwargs):
amount_allocated=txn.amount,
amount_debited=txn.amount)
self.add_payment_source(source)
self.add_payment_event('Settled', txn.amount)
self.add_payment_event('Settled', txn.amount,
reference=txn.correlation_id)

def create_shipping_address(self, basket=None):
"""
Expand Down

0 comments on commit b3840a1

Please sign in to comment.