Order confirmation per payment processor

Hi,

I want my order confirmation email text to be different per payment processor. I tried a few methods on here but couldn’t get any of them to work properly.

I have 3 payment processors :

Bank Payment

Zapper

Peach Payments

For Bank Payment I want the following text :

Please use the following bank details to make a payment and forward the proof to us via email.

Bank name xxxxxxxxx

Account number xxxxxxxxx

For Zapper/Peach Payments I want the following text :

We received your order and payment and we are now processing your order.

So the confirmation email only need to show the relevant text for the payment processor used.

Any help will be appreciated.

Hi @Csut
You can use the code similar to below

{% for transaction in transactions %}

	{% if transaction.gateway_display_name == "Shopify payments" %}

	

	{% endif %}

	{% endfor %}

You can adjust as per your need

Please press Like and Mark Solution if you find it helpful.

Thanks!

Can’t seem to get this to work. I think its a case of I don’t know where to add this code and what I need to delete from the old code.

Yes, it may require knowledge of liquid and existing code
idea is you get payment name in this variable “transaction.gateway_display_name” and you can use this to control the content based on this

Thanks!

Thanks. I tried but can’t find the code to display anything. I reverted back to my old text and will just leave it at that. Thanks anyway.