Commit 08257edb by Renzo Lucioni

Merge pull request #87 from edx/renzo/invoice-number

Send basket ID to PayPal
parents ca896f77 a5b39994
...@@ -351,6 +351,7 @@ class Paypal(BasePaymentProcessor): ...@@ -351,6 +351,7 @@ class Paypal(BasePaymentProcessor):
for line in basket.all_lines() for line in basket.all_lines()
], ],
}, },
'invoice_number': unicode(basket.id),
}], }],
} }
......
...@@ -195,6 +195,7 @@ class PaypalMixin(object): ...@@ -195,6 +195,7 @@ class PaypalMixin(object):
for line in basket.all_lines() for line in basket.all_lines()
], ],
}, },
u'invoice_number': unicode(basket.id),
u'related_resources': [] u'related_resources': []
}], }],
u'update_time': u'2015-05-04T18:18:27Z' u'update_time': u'2015-05-04T18:18:27Z'
...@@ -269,6 +270,7 @@ class PaypalMixin(object): ...@@ -269,6 +270,7 @@ class PaypalMixin(object):
for line in basket.all_lines() for line in basket.all_lines()
], ],
}, },
u'invoice_number': unicode(basket.id),
u'related_resources': [{ u'related_resources': [{
u'sale': { u'sale': {
u'amount': { u'amount': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment