Jump to content

Value of {$invoice_payment_method}


Recommended Posts

Hi.

 

What is value is {$invoice_payment_method} ?

 

module or displayname?

 

With Api I get below

    "paymentmethod" => array:5 [
      0 => array:2 [
        "module" => "banktransfer"
        "displayname" => "Transferencia Bancaria"
      ]
      1 => array:2 [
        "module" => "redsys"
        "displayname" => "Bankia (Tarjetas/IuPay)"
      ]
      2 => array:2 [
        "module" => "paypal"
        "displayname" => "PayPal"
      ]
      3 => array:2 [
        "module" => "stripe"
        "displayname" => "Stripe (otras tarjetas)"
      ]
      4 => array:2 [
        "module" => "directdebit"
        "displayname" => "Domiciliación Bancaria"
      ]


 

Best regards

 

Link to comment
Share on other sites

2 minutes ago, Abdelkarim said:

Well.. I like you reply with links but I don't see solution and think is bet reply a question directly.

the code I posted is from an email template and uses the display name...

{if $invoice_payment_method eq "Bank Transfer"}

if the code need to use the module value, the code would have been...

{if $invoice_payment_method eq "banktransfer"}

the displayname value should work; the module value should not... best way to know for sure is to try them! 🙂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated