Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it safe to expose customer ID or credit card ID from STRIPE to the public?

I am using stripe for payment in my platform. Stripe provides me with IDs for the objects I can access in my account,

things like customer_id, which is like something cus_6DUY9LB2ih5Pdy

or credit card id like card_1613mtB177tQO9RpJRQEFLcV

If i had a delete link which references those ID like so

http://mywebapp.com/user/card_1614UyB177tQO9RpKy5Ysw10

for example, that link will delete the card from stripe and from my local DB

Is it safe for me to expose these IDs to the public?

can someone potential do malicious things with the card ID(like creating a charge?)

like image 497
John Avatar asked May 11 '15 00:05

John


People also ask

Is Stripe safe for customers?

We're a certified PCI Service Provider Level 1. This is the most stringent level of certification available in the payments industry. To accomplish this, we use the best-in-class security tools and practices to maintain a high level of security at Stripe.

What information can be stored under a customer ID Stripe?

The Customer resource is a core entity within Stripe. Use it to store all of the profile, billing, and tax information required to bill a customer for subscriptions and one-off invoices.

Are Stripe customer ids sensitive?

All sensitive information coming from the account id requires your Stripe Secret Key (or that of the account, for Connect accounts). That being said, if access to those keys is compromised, having the account ids readily available just makes it that much easier for an attacker.

Does Stripe retain credit card information?

Stripe typically validates card information when it is saved. For more details on when this happens, see Check if a card is valid without a charge.


1 Answers

To get an answer marked on this, confirming what @koopajah said in the comment on the question years ago:

Those ids are specific to your account and only work with your secret key

So they are safe (nobody else can use them), but you may not want to expose these or build too much dependency around them. Instead, use your own data representation as a reference to them.

like image 132
Nolan H Avatar answered Sep 22 '22 15:09

Nolan H