/ember-contextual-wallet

ember-contextual-wallet

Primary LanguageJavaScript

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