Ecommerce

Add Payment

Ecommerce Pro

Add a new card and watch it fill in as you type, recolouring to match the card network and turning over for the security code. Saving verifies the card and tucks it into your wallet.

About the Add Payment screen

A full shopping flow for React Native and Expo: browsing, product pages, cart, checkout, payment, orders and returns. This is one of 31 ecommerce screens.

How it behaves

It responds to taps, scrolling and typing. On a phone you feel a light tap on buttons, a selection tick when you switch an option, a success pulse when the task completes, a heavy press on the main commit and a warning buzz when something can't be done yet.

  • Handles errors in place, next to the thing that failed.
  • Keeps fields and actions above the on-screen keyboard.
  • Respects Reduce Motion: movement drops out and the feedback stays.

Make it yours

npx @lumioui/cli add pro/ecommerce-add-payment copies the screen into screens/ecommerce/add-payment.tsx along with the 3 components it uses, so the source is yours to edit. It's shown in neutral ink: wrap it in an <Accent> to give it your brand colour. It follows light and dark mode, and runs on iOS and Android, including Expo Go.

Built from

  • IconIcon set drawn on one consistent grid, sized and coloured from your theme. The heart, star and bookmark can fill in place inside their outline, then fade back out.
  • SwitchOn/off switch whose colour fills in from behind the thumb as it turns on. Turning off fades it back quickly, and a disabled switch gives a gentle flicker when tapped.
  • TextThemed type scale from caption to display that follows light and dark mode. Includes a pull-quote style with an accent rule and a quieter dimmed tone for secondary text.

More in Ecommerce

View all 31