Permalink
Browse files

Fix for referencing the wrong attribute in the authorize view

  • Loading branch information...
1 parent 781b648 commit cd55124d03f629fcf97e8254288ccb470631677a @theju theju committed Aug 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 billing/gateways/we_pay_gateway.py
View
2 billing/gateways/we_pay_gateway.py
@@ -58,7 +58,7 @@ def authorize(self, money, credit_card, options = None):
response = self.we_pay.call('/credit_card/authorize', {
'client_id': self.we_pay_settings["CLIENT_ID"],
'client_secret': self.we_pay_settings["CLIENT_SECRET"],
- 'credit_card_id': resp['credit_card_id']
+ 'credit_card_id': resp['response']['credit_card_id']
}, token=token)
except WePayError, error:
transaction_was_unsuccessful.send(sender=self,

0 comments on commit cd55124

Please sign in to comment.