Automatic notifications for different payment methods

Hello, is it possible to make separate automatic notifications for different payment methods? I need the customers who choose to pay immediately by Paypal to get one type of notification letter after the payment and customers who choose to pay by bank deposit to get another one. I already made different templates for that but I don’t know how to direct these emails by the payment method

Hi @Chriss24 Welcome to Shopify Community. There is no direct way in Shopify to shoot an email immediately after the payment is done and that too based on a specific payment method.

However, there are few apps that can do a similar operation. The app is called Drip: Email and SMS Marketing and Klaviyo: Email Marketing & SMS. You can use the app and configure them as per your need.

Please feel free to reach out to us at sales@marmeto.com in case you have any further queries.

@Chriss24 I think you can use the unique_gateways property to conditionally show part of the template to the customer.

Reference: https://help.shopify.com/en/manual/orders/notifications/email-variables#order-fulfillment

Example:

{% if unique_gateways[0] == "paypal" %}
whatever you put here will only show to people that paid with paypal
{% elsif unique_gateways[0] == "bank" %}
this will show only for bank payment people
{% endif %}

This assumes only 1 payment method is used for the order, which is most often the case. If they can pay with 2 separate methods, you would cycle through each unique_gateways using {% for %}.

To get the name of the gateway:

  1. Go to the order details page

  2. In the url bar, after the order ID (the string of numbers), add .json and press enter

  3. In that text, search for payment_gateway_names and look for the value (should be something like “paypal”, or “visa”, etc).

Once you get all that setup, do a test order with the gateway you want to isolate to verify it works and see what the customer sees.

You can simply use gateway instead of unique_gateways[0]