I enter the credit cad info, the submit button turns green w/ the animated 
check box after being pressed, and the appropriate controller gets invoked. 
 But there is nothing in the request about the token: no post vars (which 
makes sense, since it isn't using a web2py-generated form), but not even in 
any of the more "raw" parts, or at least not so that I can recognize it.

So either I need to modify the form (which seems problematic, since Stripe 
does all of it within a script, like so):

<form action="/init/pay/charge" method="POST">
  <script
    src="https://checkout.stripe.com/checkout.js"; class="stripe-button"
    data-email="[email protected]"
    data-key="pk_test_..."
    data-amount="30000"
    data-name="UKI TMS"
    data-description="Trials in 2017 ($300)"
    data-image=
"https://stripe.com/img/documentation/checkout/marketplace.png";
    data-panel-label="Pay {{amount}} for 2017"
    data-locale="auto">
  </script>
</form>


or the controller, but since I can't tell where the information I need is, 
I can't tell how to get it.

I've been using web2py's Stripe module, but been getting errors about not 
using TSL1.2; so instead of trying to mess with that, thought I would go 
directly to using one of Stripe's supported methods.

- Scott

On Wednesday, March 22, 2017 at 12:29:36 AM UTC-4, lyn2py wrote:
>
> You might need to be more detailed describing your issue. 
>
> On Wednesday, March 22, 2017 at 11:19:21 AM UTC+8, Scott Hunter wrote:
>>
>> Has anyone been able to use Stripe's Checkout with web2py?  If so, how 
>> did you do it?  I'm having trouble getting the token it generates back.
>>
>> - Scott
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to