4seer / openflutterecommerceapp

Open Flutter E-commerce App
GNU General Public License v3.0
849 stars 387 forks source link

11. My Payment Methods #85

Open 4seer opened 4 years ago

4seer commented 4 years ago

11.1. Payment Methods in the profile use-case: User clicks “Payment Methods” on My Profile Screen. List of available payment methods is displayed. If there are no payment methods available user is redirected to New Payment Method Form.

11.2. Change default payment method in the profile use-case: User clicks on “Use as default payment method” and changes default payment method.

11.3. Add payment method in the profile use-case: Use click “+” button in the list of payment methods. The form to add new card is displayed. User adds card information with validation and clicks “Add Card”. The card is added to local database. User is redirected to the list of payment methods.

11.4. Remove payment method in the profile use-case: User clicks remove button in the list of payment methods. The confirmation popup appears. User selects cancel button. The Payment method stays. User clicks remove button in the list of payment methods. Confirmation popup appears. User clicks “Confirm” button and payment method is removed. According API call is made.

E-commerce App Use-Case Description

Within this task you need to do the following:

  1. Pull all data from local database and render it on the screen.

  2. At this time mock remote repository calls for fetching data from a local JSON file. The data structure and method names should be taken from WooCommerce REST API docs.