Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementace uzivatelu do objednavky #3

Open
4 of 5 tasks
mreq opened this issue May 11, 2022 · 0 comments
Open
4 of 5 tasks

Implementace uzivatelu do objednavky #3

mreq opened this issue May 11, 2022 · 0 comments
Assignees

Comments

@mreq
Copy link
Member

mreq commented May 11, 2022

Shrnuti meetu ☎️

  • V orders#confirm validovat, ze e-mail jeste neni pouzity, pripadne vynutit prihlasnei.
  • Uzivatele vytvarime (skrze invite!) po zaplaceni - po pozvance nastavit session[:folio_user_invited_email] a redirect na invitations#show
  • edgecase: pred zaplacenim je potreba znovu zkontrolovat, ze muzu pro dany e-mail uzivatele vytvorit - pripadne storno objednavky a flash zprava
  • Nacist data z current_user pri vytvoreni objednavky, potazmo do existujici objednavky po prihlaseni/registraci (jako ||=)
  • Pro prihlasene uzivatele neni input pro e-mail ve formu - je ale potreba ho propsat do objednavky

Scenare

Preved prosim do testu a pripadne dopln, pokud te neco napadne

Anonym - platba

  1. neprihlaseny prijdu na obchod a vyberu produkt
  2. potvrdim s neobsazenym e-mailem
  3. zaplatim

Anonym - nezaplacene

  1. neprihlaseny prijdu na obchod a vyberu produkt
  2. potvrdim s neobsazenym e-mailem
  3. nikdy nezaplatim

Anonym - pouzity e-mail

  1. neprihlaseny prijdu na obchod a vyberu produkt
  2. zkusim potvrdit s obsazenym e-mailem

Anonym - konflikt

  1. neprihlaseny prijdu na obchod a vyberu produkt
  2. potvrdim s neobsazenym e-mailem
  3. zalozim si uzivatele s danym e-mailem
  4. zaplatim

Anonym - vice objednavek

  1. neprihlaseny prijdu na obchod a vyberu produkt
  2. potvrdim s neobsazenym e-mailem
  3. zaplatim
  4. udelame dalsi objednavku - vyberu produkt a zaplatim se stejnym mailem

Prihlaseny uzivatel - platba

  1. prihlaseny prijdu na obchod a vyberu produkt
  2. potvrdim
  3. zaplatim

Prihlaseny uzivatel - nezaplacene

  1. prihlaseny prijdu na obchod a vyberu produkt
  2. potvrdim
  3. nikdy nezaplatim
mreq added a commit that referenced this issue May 11, 2022
dedekm added a commit that referenced this issue May 12, 2022
dedekm added a commit that referenced this issue May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants