Create a max $ limit on a specific CC in Stripe

Hi.

I have a bubble app that subscribes people to a Stripe payment plan. I’m using the official Stripe plugin to accomplish this.

I want to do two additional things:

  • Let people subscribe multiple times
  • Set a limit for a $1000 USD per CC (Not email or any other user info)

Anyone know how to accomplish this?

You can safely store the user’s saved CCs in the database by grabbing the anonymized stripe card id that’s returned when create the first charge. This card id points to the user’s credit card that’s stored in stripe and can be used again by the stripe plugin to charge that card at a later time.

You simply need to store the stripe card id in your database and your max charge amount and create the interface and logic to allow the user to pick their card and restrict it if necessary.

Create a new data type called (lets call it card) in your database
Create fields for stripe card id and max charge amount (and any others)
Create a relationship between each card entry and your user. I suggest a list of cards for each user

What you wind up with is structure to your database and app where you can create conditional logic to do what you want:

image

https://cl.ly/2edbb7967878/Image%202019-08-20%20at%209.22.09%20AM.png

2 Likes

Thanks for taking the time to support me here!

Where do I find the anonymized stripe card id?

I’m trying different actions here and checking their settings without seeing where this ID is generated.

Hi there,

If you haven’t found it yet, the value should be returned by the plugin and available in your workflow in subsequent steps. (i.e. the result of step ___ )

This topic was automatically closed after 70 days. New replies are no longer allowed.