Permalink
Browse files

Actually get the response from stripe and use it to create the transa…

…ction id
  • Loading branch information...
darkpixel committed May 5, 2012
1 parent a25bf4f commit 81e4012a6023273e079f43c8b7283feacb887ae3
Showing with 2 additions and 3 deletions.
  1. +2 −3 shop_stripe/offsite_stripe.py
@@ -75,9 +75,8 @@ def stripe_payment_view(self, request):
'customer':customer_id,
'description':description,}
- stripe.Charge.create(**stripe_dict)
-
- self.shop.confirm_payment(self.shop.get_order_for_id(order_id), amount, transaction_id, self.backend_name)
+ stripe_result = stripe.Charge.create(**stripe_dict)
+ self.shop.confirm_payment(self.shop.get_order_for_id(order_id), amount, stripe_result['id'], self.backend_name)
# If we're logged in, save the transaction token for use again later. Sweet.
if request.user.is_authenticated and request.user.get_profile().stripe_customer_id == None:

0 comments on commit 81e4012

Please sign in to comment.