Skip to content

Instantly share code, notes, and snippets.

@drozdowsky
Last active July 13, 2020 08:14
Show Gist options
  • Save drozdowsky/b1948bb7dd876e1744ab6840188f83a0 to your computer and use it in GitHub Desktop.
Save drozdowsky/b1948bb7dd876e1744ab6840188f83a0 to your computer and use it in GitHub Desktop.
# https://stripe.com/docs/sources/sofort#testing-the-redirect-process
client.Source.create(
type="sofort",
currency=currency.lower(),
amount=int(str(c.get_total().gross.amount).replace(".", "")),
# xxx_chargeable@example.com : The source will be created as pending,
# but automatically transition to chargeable within seconds of its creation.
owner={"email": "xxx_chargeable@example.com"},
redirect={"return_url": "https://test.com"},
sofort={"country": country},
)["id"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment