# Stripe payments and the cart

**URL:** <https://community.glideapps.com/t/stripe-payments-and-the-cart/40695>\
**Category:** Ask for Help\
**Created:** [April 13, 2022, 8:34pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695 "2022-04-13T20:34:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 8:34pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/1 "2022-04-13T20:34:50Z")

</div>

The source selector is greyed out for Cart Screen. Why is this?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/a/3a8078c07330f42e71aa20dd7fe42f033299ed5e.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 13, 2022, 9:24pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/2 "2022-04-13T21:24:09Z")

</div>

Because the built in cart is internal to glide and integrated with the Buy button. It does not use a table that you can access or change.

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/9/958728366e6c4868ab01b64f95e64df998ca3637.jpeg "Buy Button | Glide Apps Tutorial") ](https://www.youtube.com/watch?v=q3NG7TVqqhU)

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 9:30pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/3 "2022-04-13T21:30:17Z")

</div>

Is it possible to use it with my own table then?

If so, then how would one go about it?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 13, 2022, 9:37pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/4 "2022-04-13T21:37:34Z")

</div>

No, it’s internal to glide for the Buy button’s built in cart feature.

If you want full control of a cart in your own table, then you will have to build your own Cart functionality.

There are several complete templates out there that do this, if you look in the template store. Below is a concept I threw together a while back to demonstrate a way to have a cart that uses a single row for all users.

> [@Shopping Cart Concept for demonstration purposes](https://community.glideapps.com/t/shopping-cart-concept-for-demonstration-purposes/33264):
>
> First of all, I want to say that I’m personally not a big fan of ecommerce type apps with Glide. There’s a lot of complexity to them and everybody has a different view for how they should work. Because of that, I generally don’t give advice on how to do things with them. Glide has said that ecommerce is not the direction they are focused on and I think Glide is short on some logic and functionality to properly handle the purchase and inventory side of things. With that said, I still made an …

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 9:43pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/5 "2022-04-13T21:43:48Z")

</div>

This is not processing orders though correct?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 13, 2022, 9:45pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/6 "2022-04-13T21:45:03Z")

</div>

You mean my example? No, it’s only a demo. It doesn’t have any payment functionality built into it.

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 9:46pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/7 "2022-04-13T21:46:41Z")

</div>

Okay, gotcha. I was going to use the API in Glide to create my own with Stripe but Stripes API Docs are not the most comprehensive.

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 9:48pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/8 "2022-04-13T21:48:11Z")

</div>

Is it possible to pull the orders back in to Glide from the Hidden Sheet?

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9f8830d640ed6615adeb5339220c183c5107c7a6.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 13, 2022, 9:51pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/9 "2022-04-13T21:51:18Z")

</div>

Duplicate the App: Sales sheet into a new sheet tab with a formula, and it will show up in glide.

`={'App: Sales'!A:Z}`

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 9:52pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/10 "2022-04-13T21:52:12Z")

</div>

Ah yes, Thank you 🙏🏻

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 9:56pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/11 "2022-04-13T21:56:13Z")

</div>

How could I fix this? There is a …Line 1 and …Line 2 so Glide is creating an array.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/e/ae374887a13af7ba5b082b5d3e43411cee7565b5.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 13, 2022, 9:59pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/12 "2022-04-13T21:59:04Z")

</div>

They will still function as individual columns, but will show as an array in the data editor. If you need to see it as separate columns in the data editor then you’ll have rename the column headings so they aren’t sequentially numbered.

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 10:00pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/13 "2022-04-13T22:00:04Z")

</div>

Would that not break the way the Stripe function writes to it?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 13, 2022, 10:02pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/14 "2022-04-13T22:02:13Z")

</div>

Write your own headings in the new sheet, put the formula in row 2, and change it so it only grabs data from row 2+ from the app sales sheet.

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 10:04pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/15 "2022-04-13T22:04:57Z")

</div>

So how would I only grab 2+ sorry.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 13, 2022, 10:06pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/16 "2022-04-13T22:06:32Z")

</div>

`={'App: Sales'!A2:Z}`

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 13, 2022, 10:19pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/17 "2022-04-13T22:19:25Z")

</div>

Thanks man!

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 14, 2022, 2:28pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/18 "2022-04-14T14:28:35Z")

</div>

@Jeff_Hager I had one more question…How could I go about performing an action after adding something to the cart?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 14, 2022, 3:09pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/19 "2022-04-14T15:09:55Z")

</div>

You can use a custom action to string multiple actions together.

> **[Custom Actions](https://docs.glideapps.com/all/topics/actions/custom-actions)**
>
> Build multi-step actions and workflows

If you are using forms, then you can use the On Submit function to perform additional actions after a row is added.

> **[Introduction to Actions](https://docs.glideapps.com/all/topics/actions/introduction-to-actions#on-submit-actions)**
>
> An introduction to Simple & Custom actions.

---

<div class="post-metadata">

**Author:** ![Daniel\_Canup](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_canup/32/32850_2.png) [@Daniel\_Canup](https://community.glideapps.com/u/Daniel_Canup)\
**Post date:** [April 14, 2022, 3:17pm UTC](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695/20 "2022-04-14T15:17:35Z")

</div>

I mean on the Stripe “Buy Button”. I don’t see anything so I assume it is not actually possible.

[Next page](https://community.glideapps.com/t/stripe-payments-and-the-cart/40695.md?page=2)
