Support » Plugin: WooCommerce Stripe Payment Gateway » Display last 4 digits of card in order confirmation

  • Resolved anon123456

    (@anon123456)


    Hi,
    I’ve scoured everywhere for a way to do this with no luck. How can I display the last 4 digits of the card used in the order confirmation page (and elsewhere)? I’m not a total noob in woocommerce, but i’m not an expert either. I tried calling WC_payment_tokens::$get_order_tokens($order)…but it doesn’t seem to return the token id of the payment used. And the token id seems to be the only argument that works for get_card_type() and get_last4(). Any help would be much appreciated! Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support Hannah S.L. a11n

    (@fernashes)

    Automattic Happiness Engineer

    Hi there!

    We’re here to help you with making sure the plugin works correctly, but this kind of customization is beyond that.

    There may be other people who can chime in to help you – otherwise, I recommend working with a developer to sort this out.

Viewing 1 replies (of 1 total)
  • The topic ‘Display last 4 digits of card in order confirmation’ is closed to new replies.