Somebody is storing credit card data – how are they doing it?

If I was storing the number, I would be a giant service provider with a massive database. That database is spread across a highly-redundant storage array consisting of multiple cabinets, in separate rooms or ideally in separate geographical locations, connected by a SAN. My biggest insider threat is the distributed physical plant, the constant stream … Read more

Best practices to store CreditCard information into DataBase

DON’T DO IT There is simply far too much risk involved, and you will typically need to be externally audited to ensure that you’re complying with all the relevant local laws and security practises. There are many third-party companies that do it for you that have already gone through all trouble of making sure their … Read more

What is the best way to validate a credit card in PHP?

There are three parts to the validation of the card number: PATTERN – does it match an issuers pattern (e.g. VISA/Mastercard/etc.) CHECKSUM – does it actually check-sum (e.g. not just 13 random numbers after “34” to make it an AMEX card number) REALLY EXISTS – does it actually have an associated account (you are unlikely … Read more

Formatting a UITextField for credit card input like (xxxx xxxx xxxx xxxx)

If you’re using Swift, go read my port of this answer for Swift 4 and use that instead. If you’re in Objective-C… Firstly, to your UITextFieldDelegate, add these instance variables… NSString *previousTextFieldContent; UITextRange *previousSelection; … and these methods: // Version 1.3 // Source and explanation: http://stackoverflow.com/a/19161529/1709587 -(void)reformatAsCardNumber:(UITextField *)textField { // In order to make the … Read more

Stripe – How to handle subscription with a free plan and no credit card required at sign up time

In part 2 where you do this: We set up a webhook to receive stripe events so after 30 days our webhook should receive a customer.subscription.updated event with a object.status == active am I right? You might also consider implementing the customer.subscription.trial_will_end webhook, this webhook will be sent three days before the customers trial is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)