1

We currently accept two payment methods: PayPal and Credit Card. Is there a way to show which payment method was used in the transaction on the CiviContribute receipt?

I'd like to show it in this table within my receipt:

{ts}Credit Card Information{/ts} {$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}

Thanks

4
  • try using {$paidBy} variable in the receipt template. Commented Nov 13, 2020 at 12:24
  • @jitendra-fuzion thanks. that didn't work :(
    – Denise
    Commented Nov 13, 2020 at 14:00
  • {$contribution.payment_instrument} might work - I played around with using it while testing but didn't implement it. I found reference to it here, though I didn't need to include the api call at the top - civicrm.stackexchange.com/questions/33149/… Commented Nov 13, 2020 at 18:31
  • Thanks @Christopher. I got it to show the Payment Type of "Credit Card" but I need to figure out how to show "Payment Processor Type" - since that'll show if it's PayPal or not. Any tips?
    – Denise
    Commented Nov 17, 2020 at 15:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.