Saving CC information to a thing

Hello!

In my website and apart of “users”, i have “business profiles”. We manage purchases internally for this businesses. These “business profiles” are a thing.

Is there a way to securely save CC information of these “business profiles” and then in a future transaction charge the “business profile”?

Thank you!

I think Stripe does this automatically, you can charge a card saved to Stripe. Unless I’m making this up, but I think that’s how my app works :slight_smile:

1 Like

So “business profiles” are a data type. If i want to store any given business cc information, the only options i have is to save “current user cc information” not “current business profile cc information”. That’s what im trying to achieve.

@potentialthings

Oh, I see. I’d be really nervous to store CC info in Bubble, not sure what @josh has to say about the best practices here.

1 Like

I would store it externally using a PCIDSS verified provider. Am sure there are ways to do this and allow manual processing.

As @potentialthings says, I would be very wary of storing it in bubble.

1 Like

Yes – Bubble’s database is not PCI-compliant, so don’t use it to store credit card numbers.

Not sure off the top of my head the best plugin to use for a credit card that isn’t attached to a specific user, but will double-check if there’s an option for that…

1 Like

I wont be storing the cc info on bubble exactly because the security implications. That’s why i was wondering if there’s an alternative to storing cc info securely to a data type instead of a user.

Thank you for all the input! @potentialthings @NigelG

I’ll wait for any info from your end @josh! Thank you!

So for the official Bubble stripe plugin, there’s not a super-great way of doing this, unfortunately: you basically have to pick a user to associate a card with. You can do something like having a field on your business profile that links to “current paying user”, and then update that field to point to whoever most recently changed the business profile’s credit card. Downside with that is if you’re using subscriptions, you’ll have to cancel and then recreate them if you switch current paying users. We recently added the ability for users to have multiple cards, so if you have one user who manages two different business profiles, and wants to use separate cards, you can add a second field on “business profile” with the id of the card they use.

There are also a few unofficial Stripe plugins people have built, which offer a lower-level API connection… haven’t reviewed them in depth but it might be possible to use one of them.

On that note I’d highly recommend Stripe.js+ (plus) by @copilot. You can store card source tokens in your Bubble app that work in tandem with Stripe’s API keys in order to allow storing and retrieval of payment data that is used for processing. I’m not sure exactly how this differs from the updated Bubble-native plugin, but I have successfully created marketplace apps using this premium plugin and sounds like what you’re wanting to do is indeed possible.

1 Like

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