#NEWLINE# def create_card( customer , token ) : #NEWLINE# #INDENT# '\n    Creates a new card for a customer\n\n    Args:\n        customer: the customer to create the card for\n        token: the token created from Stripe.js\n    ' #NEWLINE# source = customer . stripe_customer . sources . create ( source = token ) #NEWLINE# return sync_payment_source_from_stripe_data ( token , source )