I'm looking to add the credit card last four digits to my customer's frontend order history. Stripe is the gateway. The Stripe transaction object doesn't seem to be available in the Craft Transaction object (the documentation seems to be in line with this).

However, in the Commerce CP under Orders, I have see the full Stripe object in the Transactions box and it does have the last4 property that I'm looking for.

Is there any way to bring that info to the twig templates?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.