Last active
July 13, 2020 08:14
-
-
Save drozdowsky/b1948bb7dd876e1744ab6840188f83a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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(".", "")), | |
# [email protected] : The source will be created as pending, | |
# but automatically transition to chargeable within seconds of its creation. | |
owner={"email": "[email protected]"}, | |
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