More porting of django-stripe-payments code