-4

Currently, I am working on e-commerce website application developed on LARAVEL. In this project, I am accepting one time payments using STRIPE.

I understand I can not store card details on my side but I want to create new feature such as Payment method similar feature referencing UBER EATS where a user will be able to store card details for future orders payments.

Please provide me some ideas or links for similar tutorials.

Thanks in advance.

mkirr
  • 81
  • 2
  • 5
  • 15
  • [You can create a customer in stripe and charge the customer instead of the card](https://stripe.com/docs/saving-cards). However, this is not the right place to ask for recommendations, tutorials or anything related to that. – Paul May 06 '18 at 16:25

2 Answers2

1

I would advice looking at the Stripe API:

https://stripe.com/docs/api#create_card-source-number

Stripe offers a out-of-the-box method to save credit card details, you can find all information on the Stripe documentation.

0

You can create a card object and store id of that object in your database. You can find out, how to create card object from this link

Create a card object

You can also store following things from using above link,

  • Last 4 digit of customer credit card.
  • Exp month and Exp year of customer credit card.
  • CVC number checked or not in your database.

You can use id of card object to make payments from already stored credit card for that customer.

chohan
  • 58
  • 4