Check if Credit Card
-
Hello,
first of all, thanks for your awesome plugin. I am trying to insert a footer within the invoice.php template file using a conditional. I want this footer to be visible only if a payment has been done with a credit card. For the credit card payments we use the braintree credit card system.
What I did was write this code$payment_method = method_exists($order, 'get_payment_method') ? $order->get_payment_method() : $order->payment_method; if ($payment_method == 'credit_card') { ?>
The problem must be within the if statement… I tried also with
if ($payment_method == 'braintree_credit_card')
but without any success. What should I use for this equal statement ? I found online that if I wanted to control for BACS payment, the conditional would be
if ($payment_method == 'bacs')
I need something similar for credit cards if possible.. Many many thanks in advanceThe page I need help with: [log in to see the link]
- The topic ‘Check if Credit Card’ is closed to new replies.