1

How to retrieve a credit card number and other details in magento 2? enter image description here

10
  • this details save in database? Feb 8 '19 at 11:00
  • yes last 4 number of credit card is saved in the database but i need the all number of the card @rakesh Feb 8 '19 at 11:03
  • if you have saved in datbase last 4 digits then get only 4 digits not other Feb 8 '19 at 11:05
  • its default store last 4 number in sales_order_payment table, its stores defaults @rakesh Feb 8 '19 at 11:07
  • Your CC data will be got in function assignData(). This function in app/code/Vendor/ModuleName/Model/Paymentgateway.php file Feb 8 '19 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.