Auto payments in creator

Auto payments in creator

I am building an app that will take online sign ups and where users can subscribe to services.
The app should integrate with Stripe to set up a payment record (user token getting stored to Creator) and charge the credit card each month for the services.

step 1: on new user registration through a Zoho Creator form, user is presented with a Stripe form to enter payment information;
step 2: after succesful credticard registration, user is sent back to my website. Payment token is stored in Zoho Creator.
step 3: a daily schedule checks if anybody is due for their subscription fee, and if so, charges the creditcard through the Stripe token.

I've figured out step 3, but am still working on step 1 and 2. 
Does anybody have any experience with building such a Stripe integration into their Creator app? 
I would love to see some sample code.

step 3: On succes code:
post_data = {
"customer" : "#####CUSTOMER-TOKEN",
 "amount" : "1000",
 "currency" : "usd",
 "description" : "One-time setup fee"
};







headers = { "Authorization" : "#####API-KEY" };
response = postUrl("https://api.stripe.com/v1/invoiceitems", post_data, headers,false);
input.payment_confirmation = response.get("responseText");