tomik-z-cech / PP5-Ohm-Azing-Components

View massive selection of electronic components at our online store. Find high-quality resistors, capacitors, tools, kits and more. Shop now for all your electronic needs !

Home Page:https://ohmazing-components-1a5a0fcb9e95.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USER STORY : Stripe and Webhooks Setup

tomik-z-cech opened this issue · comments

As a Site Admin, I need to be able to process the order functions even in event of failure in order to ensure no paying customer is left without goods.

Acceptance Criteria :

When User provides valid payment media number but connection is interrupted for some reason during the confirmation process then all other functions (saving order, email, invoice) needs to proceed as normal via webhooks.

Tasks :

  • Create webhooks handlers
  • Set webhooks endpoint on stripe.com
  • Copy functionality from sucesfull checkout view to webhooks
  • Adjsut the functionality so saved info based on stripe metadata
  • Test locally via stripe CLI
  • Test functionality as logged in User
  • Test functionality as not logged in User

Epic :
EPIC 10

This was done in commit 9d07b91.