Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending Card Number Directly Not Acceptable #692

Open
Keram-Yasin opened this issue Aug 3, 2023 · 4 comments
Open

Sending Card Number Directly Not Acceptable #692

Keram-Yasin opened this issue Aug 3, 2023 · 4 comments

Comments

@Keram-Yasin
Copy link

Hello everyone,

I encountered an issue while integrating Omnipay with Stripe. After I have put down the exact same code in README.MD page with my test API Key. I had following error after checkout:

"Sending credit card numbers directly to the Stripe API is generally unsafe. We suggest you use test tokens that map to the test card you are using, see https://stripe.com/docs/testing."

I had no way to solve the problem unless I follow the integration guide of Stripe meaning I have to totally give up on this repository.

Is there any trick to stick to this repository which is super handy?

@lfjeff
Copy link

lfjeff commented Aug 3, 2023 via email

@Keram-Yasin
Copy link
Author

I collected the card holder's data directly in my web app which is still in test phase. And I figured out that this is not a safe and standard way to deal with customers. I used that way because some other payment service provider offers php API which charges customers directly on the backend after passing customer data from front-end.

Furthermore the payment gateways can not charge customers with one step or one click because customers are most likely to be redirected after $gateway->purchase() action.

Considering all the information, I gave up the easy but insecure way of collecting customer information method, thus I adopted the standard way of leave-custome- data-to-payment-provider method. This way all parties involved would be happy about the transaction.

@lfjeff
Copy link

lfjeff commented Aug 3, 2023 via email

@Keram-Yasin
Copy link
Author

Your advice is really reasonable. I would be cosidering very well if that would be great fit to my web app. Thanks for your kind reply and advices. You're very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants