cancel
Showing results for 
Search instead for 
Did you mean: 

Email Confirmation - Removing Extra Information

Email Confirmation - Removing Extra Information

On my order confirmation emails under Payment Method, I would like to get rid of specific credit card information. Right now if someone pays with a credit card it list the credit card type, partial credit card number, avs response code, processor authentication code, processor response text, and cvv2 response code. I really just need it to say "credit card" and not any of the extra numbers and codes. Right now I'm using this code to pull in the Payment Method information:

<td class="method-info">
<h3><strong>{{trans "Payment Method"}}</strong></h3>
{{var payment_html|raw}}
</td>
1 REPLY 1

Re: Email Confirmation - Removing Extra Information

Hello @matt_nelsen 

 

vendor/magento/module-payment/view/frontend/templates/info/default.phtml responsilble for this.

if you need only payment method title then keep only

 <dt class="title"><?= /* @noEscape */ $title ?></dt>

and remove other code.

If it is custom payment method then you need to find related info block and then neeed to remove it.

 

If help you then mark as a solution


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer