Skip to content

Instantly share code, notes, and snippets.

@czepluch
Created December 16, 2020 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czepluch/55d340277a7a5df85e29a9ce9985a568 to your computer and use it in GitHub Desktop.
Save czepluch/55d340277a7a5df85e29a9ce9985a568 to your computer and use it in GitHub Desktop.
Raiden Paywall
@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