Skip to content
Permalink
Browse files

New payment link

  • Loading branch information...
joamag committed Sep 10, 2019
1 parent 7b9e6f5 commit 82c264fcb3fdf3368d25dc92612536c993ef0317
@@ -41,6 +41,10 @@

class StripeController(appier.Controller):

@appier.route("/stripe/payment", "GET")
def payment(self):
return self.template("stripe/payment.html.tpl")

@appier.route("/stripe/redirect", "GET")
def redirect(self):
redirect_url = self.field("redirect_url", mandatory = True)
@@ -0,0 +1,4 @@
<html>
<body>
</body>
</html>
@@ -1,6 +1,5 @@
<html>
<body onload="document.autoRedirect.submit();">
<form name="autoRedirect" method="POST" action="{{ redirect_url }}">
</form>
<form name="autoRedirect" method="POST" action="{{ redirect_url }}"></form>
</body>
</html>

0 comments on commit 82c264f

Please sign in to comment.
You can’t perform that action at this time.