<form action="{{=URL(c='pay',f='charge',args=request.args)}}" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-email="{{=auth.user.email}}"
data-key="{{=pk}}"
data-amount="{{=amount}}"
data-name="UKI TMS"
data-description="{{=description}}"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-panel-label="{{=label}}"
data-locale="auto">
</script>
</form>
def charge():
return DIV("%r"%request,_class="well")
That's what I would have thought, but if I have the following in my view:
<form action="{{=URL(c='pay',f='charge',args=request.args)}}" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-email="{{=auth.user.email}}"
data-key="{{=pk}}"
data-amount="{{=amount}}"
data-name="UKI TMS"
data-description="{{=description}}"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-panel-label="{{=label}}"
data-locale="auto">
</script>
</form>and the following in my `pay` controller:
def charge():
return DIV("%r"%request,_class="well")the displayed value of `request._post_vars` is None. Same thing if I don't specify `args` in the action URL, or leave the action URL empty (and display `request.env` from the appropriate controller).
Poking around the DOM, I see that there is *another* form inside of mine, and this is the form which contains the "submit" button (along with all of the input fields).