Skip to content

Add new getPaymentInstrumentDetails helper#1130

Open
gciotola wants to merge 1 commit into
mainfrom
feat/604-get-payment-istrument-details
Open

Add new getPaymentInstrumentDetails helper#1130
gciotola wants to merge 1 commit into
mainfrom
feat/604-get-payment-istrument-details

Conversation

@gciotola
Copy link
Copy Markdown
Contributor

@gciotola gciotola commented May 14, 2026

Related to commercelayer/issues-app#604

What I did

I've extracted from ResourcePaymentMethod a new helper to easily retrieve payment instrument details

const { 
  paymentMethodName,    // Adyen Payment
  cardType,             // Visa
  issuerType,           // credit card
  cardLastDigits,       // 4242
  cardExpiry.           // 10/29
} = getPaymentInstrumentDetails(orderWithPaymentSourceResponse)

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • Make sure to add/update documentation regarding your changes.
  • You are NOT deprecating/removing a feature.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for commercelayer-app-elements ready!

Name Link
🔨 Latest commit b649d63
🔍 Latest deploy log https://app.netlify.com/projects/commercelayer-app-elements/deploys/6a05f62eebcda90008042b92
😎 Deploy Preview https://deploy-preview-1130--commercelayer-app-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gciotola gciotola changed the title feat: expose getPaymentInstrumentDetails helper Add new getPaymentInstrumentDetails helper May 14, 2026
@gciotola gciotola self-assigned this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant