Support » Plugin: WooCommerce PDF Invoices & Packing Slips » Credit Card Type and Last Four Digits

  • Resolved jayPEG

    (@jaypeg)


    Is it possible to have the template output the type of Credit Card (Visa, MC, Amex, etc) and the lat four digits of said card?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ewout

    (@pomegranate)

    Hi! Technically, that’s certainly possible, but it depends on a few things:

    • If your credit card gateway plugin stores this data in the order itself, you can retrieve this as a custom field: Displaying a custom field. If you’re not sure about this, you could inspect the order data first, more about that here: Finding WooCommerce Custom Fields
    • If that data is not stored in the order, you may still be able to retrieve it using the API of your payment gateway. This is much more advanced though and will require sufficient programming experience.

    Unfortunately neither of these options are super simple, but perhaps the developers of your payment gateway plugin can also help with this.

    Good luck!

    Thank you Ewout! That did the trick. Using the WooCommerce – Store Toolkit Plugin, I was able to easily find the custom fields needed to output them into the template.
    Your help was exactly what I was in need of.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.