Skip to content
Permalink
Browse files

New intent creation

  • Loading branch information...
joamag committed Sep 10, 2019
1 parent 6166350 commit 0b50c1d874a65a1224bb3e4b66ed305bf5a277f8
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/examples/app.py
@@ -132,6 +132,14 @@ def new_token(self):
)
return token

@appier.route("/intents/new", "GET")
def new_intent(self):
amount = self.field("amount", 100, cast = int)
currency = self.field("currency", "EUR")
api = self.get_api()
intent = api.create_intent(amount, currency)
return intent

@appier.route("/3d_secure/new", "GET")
def new_3d_secure(self):
redirect = self.field("redirect", True, cast = bool)

0 comments on commit 0b50c1d

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