Skip to content

Instantly share code, notes, and snippets.

View chrisbolman's full-sized avatar
🏠
Working from home

Chris Bolman chrisbolman

🏠
Working from home
View GitHub Profile
if form.is_valid():
customer = Customer.objects.get_or_create_for_user(request.user)
token = form.cleaned_data['stripeToken']
card = Card(customer=customer, stripe_card_id=token)
try:
card.save()
Verifying my Blockstack ID is secured with the address 1Q6xzW9rqgTCYPtjqdhATFYooMHjokTv8G https://explorer.blockstack.org/address/1Q6xzW9rqgTCYPtjqdhATFYooMHjokTv8G