Payment choose stripe

Modal that opens when the customer chooses the payment method stripe or line with this permission to select a card for payment or add one.

Main models

  • cards: contains all the cards in an array to list

Utility Functions

  • hide(): close the modal
  • add(): open a modal to add a new card
  • accept(): Confirm the selected card
  • change(card_id): select the card you want to use

Example of base theme

485
  1. hide()
  2. cards
  3. change(card_id)
  4. add()
  5. accept()