saikota / ember-contextual-wallet

ember-contextual-wallet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  • git clone <repository-url> this repository
  • cd ask-jeeves
  • npm install

Running / Development

Requirements

  • One Main CreditCardForm component
  • Have a onSave which works with Configurable Checkout Contract
  • Have a separate onSave which works in wallet-management scenarios.
  • For now just consoled.log to show Proof of concept of different actions being invoked

Comoponent Structure

Wallet will have two components

  • CCForm ( used for checkout cases)
  • AuthCCForm (used for wallet-management scenario: does save card + makes auth calls)
Application.hbs
|-->Wallet
      |-->EditPaymentMethod
              |--> CCForm
              |--> AuthCCForm

Component Mapping to wallet-addon-mp

  • Wallet -> Wallet-Container
  • EditPaymentMethod (newly introduced component)
  • CCForm -> Create-Payment-Method component
  • AuthCCForm -> A Create-Payment-Method component which has additional actions to do auth checks

Demo:  Alt text

About

ember-contextual-wallet


Languages

Language:JavaScript 69.8%Language:HTML 14.7%Language:Handlebars 14.0%Language:CSS 1.5%