Created
December 16, 2020 11:27
-
-
Save czepluch/55d340277a7a5df85e29a9ce9985a568 to your computer and use it in GitHub Desktop.
Raiden Paywall
This file contains 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
@app.route("/article") | |
def article(): | |
paywall.amount += Decimal('0.0001') | |
if not paywall.check_payment(): | |
return paywall.preview("You will only see a preview") | |
return f"Here is the actual content, thank you for paying {str(paywall.amount)} token!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment