# Pastebin e6v87Asb import stripe stripe.api_key = "sk_test_xxx" # Create a foreign account acc = stripe.Account.create(type="custom", country="GB", default_currency="gbp") # Create a charge ch = stripe.Charge.create(source="tok_visa", amount=2000, currency="cad", application_fee=200, expand=['application_fee', 'application_fee.balance_transaction'], stripe_account=acc.id)