Trying to work with Stripe to create an account, charge a card, and sign up for a subscription which will start 15-30 days later.
What I want to do is:
1) Collect up front the use infomation (email, address, first/last name, card info, etc) which will be added a customer on stripe and in my database.
2) Do the initial charge (not the subscription charge) and if pass will create the account on both stipe and my database.
3) Make sure I have Stipe's info for the customer in my database to charge cade at later date. Have not decided if I will run a cron to to the monthly charge or have Stripe to do it.
4) If Payment for subscriptions ends (by bad credit card monthly charge or other reason), limit what the person sees when they login. This is why I was thinking of having a cron run and if it is marked as need payment, do the limited view.
Thanks for help and advice in advance!
So apparently I offended a couple of people. I also forgot to mentioned that I was trying do do it with AJAX which was my main problem I was trying to work out.
I have actually found some related links, finally, that seems to have pointed me into the right direction that I was looking for. Which mainly what I wanted.
Below are the links that has helped me so far. Hopes they help anyone looking for the same thing.
https://youtu.be/EildM6OMcoQ
Not sure why this one finally showed up on my search? Guess did not phase my search correctly...
Make a Stripe payment with Jquery AJAX? (Javascript ONLY)
There is one or two more link, but I will have to find them. I will add them once they are found....
Here is my test scripts, mainly for checking on passing the token... Will need to see about making it work with STRIPE V3 API...
Form.php
testphp.php
There are a lot of other things I am going to have to work out, but this mainly was mainly the direction I was looking advice on....