credit-card

Credit card payment gateway in PHP? [closed]

浪尽此生 提交于 2019-11-27 09:36:50
问题 I need to process credit cards and integrate with backend payment services to credit them. The majority of solutions on the internet require an intermediary, eg. 2CO, GCO, Auth.net. Do you have any experience with implementing a credit-card payment gateway in PHP? Any help in appreciated. Thanks for your time. 回答1: Stripe has a PHP library to accept credit cards without needing a merchant account: https://github.com/stripe/stripe-php Check out the documentation and FAQ, and feel free to drop

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

被刻印的时光 ゝ 提交于 2019-11-27 09:03:07
问题 We started to implement Stripe on Redsmin (one of our project) and I think we may have missed something. Here is how it works: To use our product, the user must select a plan (free, s, m, xl, xxl...) then enter its login/password and is then good to go for a free 30 days trial. When the user submits the form, our server calls Stripe create_customer with the specified plan and no credit card (because we want to offer 30 days free with no credit card required) and we update the user model on

Determine credit card type by number?

佐手、 提交于 2019-11-27 06:12:26
Can credit card type be determined solely from the credit card number? Is this recommended or should we always ask client for the type of credit card they're using? I Googled about it and found this algorithm: http://cuinl.tripod.com/Tips/o-1.htm , is this reliable? Yes, the site you mentioned is correct. Many sites, incl. Google Checkout I believe, rely on automatic detection of the card type. It's convenient, makes the UI less cluttered (one less input box) and saves time. Go ahead! I have heard one good reason to make them pick (even though you can figure it out). So that they know the list

How tell the difference between a Debit Card and a Credit Card

戏子无情 提交于 2019-11-27 05:41:37
问题 How does one determine that the card a person is entering is a debit card, check card, or credit card? I am looking at this for web payments in the US only. This is for utility billing. 回答1: I'm thinking you are getting confused that when you swipe the card in a store the machine knows which kind of card you've got. Although with my Dutch debit card I always got the option to choose.. But I'm guessing the magnetic strip stores more than just the number, and the card readers use that to

How to mask credit card numbers in log files with Log4J?

安稳与你 提交于 2019-11-27 01:18:28
Our web app needs to be made PCI compliant, i.e. it must not store any credit card numbers. The app is a frontend to a mainframe system which handles the CC numbers internally and - as we have just found out - occasionally still spits out a full CC number on one of its response screens. By default, the whole content of these responses are logged at debug level, and also the content parsed from these can be logged in lots of different places. So I can't hunt down the source of such data leaks. I must make sure that CC numbers are masked in our log files. The regex part is not an issue, I will

Storing Credit Card Number - PCI?

风格不统一 提交于 2019-11-27 00:03:59
问题 What are the PCI rules to follow for storing credit card numbers in a database? 1) is this allowed? 2) if so, what rules do we have to follow? Im looking at this site https://www.pcisecuritystandards.org/security_standards/index.php which document should I be reading here? 回答1: 1) Yes, it is allowed but very, very discouraged. Having this information in your database makes you an extremely attractive target for hackers. And if you think you can protect it, think again. Hackers have defeated

Best practices to store CreditCard information into DataBase

廉价感情. 提交于 2019-11-27 00:00:25
问题 In my country the online payments are not an old thing, the first time i saw a web application taking payments directly to a local bank account was last year. So, Im a newbie coding web payment system. My question is, what are the best practices to store creditcard information into the database... I have many ideas: encrypting the creditcard, database security restriction, etc. What have you done? 回答1: DON'T DO IT There is simply far too much risk involved, and you will typically need to be

Storing credit card details

六月ゝ 毕业季﹏ 提交于 2019-11-26 19:32:34
I have a business requirement that forces me to store a customer's full credit card details (number, name, expiry date, CVV2) for a short period of time. Rationale: If a customer calls to order a product and their credit card is declined on the spot you are likely to lose the sale. If you take their details, thank them for the transaction and then find that the card is declined, you can phone them back and they are more likely to find another way of paying for the product. If the credit card is accepted you clear the details from the order. I cannot change this. The existing system stores the

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

北城余情 提交于 2019-11-26 19:24:39
I want to format a UITextField for entering a credit card number into such that it only allows digits to be entered and automatically inserts spaces so that the number is formatted like so: XXXX XXXX XXXX XXXX How can I do this? 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

Check Credit Card Validity using Luhn Algorithm

橙三吉。 提交于 2019-11-26 16:17:58
问题 I tried to check the validation of credit card using Luhn algorithm, which works as the following steps: Double every second digit from right to left. If doubling of a digit results in a two-digit number, add up the two digits to get a single-digit number. 2 * 2 = 4 2 * 2 = 4 4 * 2 = 8 1 * 2 = 2 6 * 2 = 12 (1 + 2 = 3) 5 * 2 = 10 (1 + 0 = 1) 8 * 2 = 16 (1 + 6 = 7) 4 * 2 = 8 Now add all single-digit numbers from Step 1. 4 + 4 + 8 + 2 + 3 + 1 + 7 + 8 = 37 Add all digits in the odd places from