Fixed TypeError in stripe provider

This commit is contained in:
Raphael Michel
2016-04-10 17:46:41 +02:00
parent 10e31bdf32
commit 63687d93cc

View File

@@ -83,12 +83,12 @@ class Stripe(BasePaymentProvider):
currency=request.event.currency.lower(),
source=request.session['payment_stripe_token'],
metadata={
'order': order.id,
'order': str(order.id),
'event': self.event.id,
'code': order.code
},
# TODO: Is this sufficient?
idempotency_key=self.event.id + order.code + request.session['payment_stripe_token']
idempotency_key=str(self.event.id) + order.code + request.session['payment_stripe_token']
)
except stripe.error.CardError as e:
err = e.json_body['error']