-2

I have currently a booking website and I wish to put a form whereby the user inputs his credit card and expiry date. The card is automatically verified and once everything is fine, I want the credit card number and expiry date to be send to an Email though PHP.

I have tried several methods, most using 3rd party validations like Stripe but I am still not getting it right. Can you all suggest me how to do this?

ThomasWeb
  • 25
  • 6

1 Answers1

0

You have to use the webhooks avariable with the third party service you're using. In this way, Stripe (for example) can send you the transaction datas in json format to a hidden URL. Then you can use those datas to send your email. More information here : https://stripe.com/docs/webhooks

Note that thoses third party service will never give you the credit card number but only the 4 last digits. They also give you the expiration date.

ArGh
  • 1,148
  • 1
  • 11
  • 20