Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created October 27, 2011 17:07
Show Gist options
  • Save andymckay/1320156 to your computer and use it in GitHub Desktop.
Save andymckay/1320156 to your computer and use it in GitHub Desktop.
--- a/apps/paypal/__init__.py
+++ b/apps/paypal/__init__.py
@@ -52,12 +52,13 @@ def add_receivers(chains, email, amount, uuid):
'receiverList.receiver(%s).email' % number: destination,
'receiverList.receiver(%s).amount' % number: str(this),
'receiverList.receiver(%s).paymentType' % number: 'DIGITALGOODS',
+ 'receiverList.receiver(%s).primary' % number: 'false',
})
result.update({
'receiverList.receiver(0).email': email,
- 'receiverList.receiver(0).amount': str(remainder),
+ 'receiverList.receiver(0).amount': amount,
'receiverList.receiver(0).invoiceID': 'mozilla-%s' % uuid,
- 'receiverList.receiver(0).primary': 'TRUE',
+ 'receiverList.receiver(0).primary': 'true',
'receiverList.receiver(0).paymentType': 'DIGITALGOODS',
})
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment