# Create Customer in Stripe on Signup

**URL:** <https://community.weweb.io/t/create-customer-in-stripe-on-signup/961>\
**Category:** Ask us anything\
**Created:** [August 9, 2022, 11:24pm UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961 "2022-08-09T23:24:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![patopt](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@patopt](https://community.weweb.io/u/patopt)\
**Post date:** [August 9, 2022, 11:24pm UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/1 "2022-08-09T23:24:33Z")

</div>

I’m trying to allow users to sign up for my app with a freemium plan and then allow them to convert to a paid plan. On my signup page I’d just like to have it send the customer information to stripe to create the account, associate it to a plan, etc - but I don’t want to have the customer go through the stripe process as part of the signup, I just want it to perform some of these basic functions in the background.

Is this possible?

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [August 10, 2022, 5:20am UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/2 "2022-08-10T05:20:35Z")

</div>

Yes, it’s possible with the strioe api.  
I have implemented similar flows many times.  
Check Stripe docs and feel free to dm me if you need help.

---

<div class="post-metadata">

**Author:** ![patopt](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@patopt](https://community.weweb.io/u/patopt)\
**Post date:** [August 10, 2022, 2:44pm UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/3 "2022-08-10T14:44:37Z")

</div>

Good to hear. I’d like to take a stab at it first, but how exactly do I call the stripe API from Weweb?

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [August 10, 2022, 5:46pm UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/4 "2022-08-10T17:46:06Z")

</div>

Add the rest api plugin.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/7aef1b7cc1a583d555b7da0e8a0b62a22c5eedae.png)

Use the rest api request action in a workflow.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e6274dad69d677cf4ff351839fd22538dfbe2314.png)

---

<div class="post-metadata">

**Author:** ![patopt](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@patopt](https://community.weweb.io/u/patopt)\
**Post date:** [August 10, 2022, 7:10pm UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/5 "2022-08-10T19:10:56Z")

</div>

Got it, thanks. Any idea how to properly pass the authentication headers? Doesn’t seem to be working.

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [August 10, 2022, 7:23pm UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/6 "2022-08-10T19:23:22Z")

</div>

You have headers option in weweb and one of the best documentation in the world in stripe…  
I’m sure you can find how to do it with some trial and error 🙂

---

<div class="post-metadata">

**Author:** ![patopt](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@patopt](https://community.weweb.io/u/patopt)\
**Post date:** [August 10, 2022, 9:21pm UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/7 "2022-08-10T21:21:02Z")

</div>

Quick update. I was able to really easily solve this problem through Xano. I simply imported the CURL output from Stripe, it created the calls I needed to the API… Done!

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [August 11, 2022, 4:23am UTC](https://community.weweb.io/t/create-customer-in-stripe-on-signup/961/8 "2022-08-11T04:23:12Z")

</div>

well done! It’s also better to call stripe api from your backend.
