Ejemplo n.º 1
0
def charge_user(usr, cpgn, amount, curr, fees, full_name=None):
    try:
        user.payment_to_campaign(usr, cpgn, amount, curr, fees, full_name=full_name)
    except (StripeCustomerAccountError,
            StripeUserAccountError,
            CampaignConfigurationError):
        return False
    return True
Ejemplo n.º 2
0
def charge_user(usr, cpgn, amount, curr, fees, full_name=None):
    try:
        user.payment_to_campaign(usr,
                                 cpgn,
                                 amount,
                                 curr,
                                 fees,
                                 full_name=full_name)
    except (StripeCustomerAccountError, StripeUserAccountError,
            CampaignConfigurationError):
        return False
    return True