How to create a stripe charge with a checkout token sent via AJAX to php
问题 I'm trying to use Stripe's new checkout feature with a custom button, send the token via AJAX POST to a php file which will then execute the charge. Unfortunately, I'm having some trouble retrieving the token from the POST variable. I'm hoping someone here might be able to tell me what I'm overcomplicating and if there's a simpler way to do this. On the client-side, I've got 5 buttons with different possible "donations". Here's the js written up for that so far (doesn't include the html): $