This PR addressed 3 issues i.e. BE, FE, and IN setup for stripe payment.
Creates BE routes for getting payment methods, adding a payment method, and updating default payment method.
Add a payments section in the profile edit page to add payment options. Users can choose a default option for payment as well.
The process flow for the payment process is as shown below.
Request from dog owner => Hold captured from dog owner card => Conversation between parties added => if sitter accepts then Option Accept, if not Option Decline.
Option Accept => Charge the dog owner => Set the request state to PAID.
Option Decline => Release the Hold amount => Set the request state to DECLINE.
Screenshots / Videos:
See the video Demo below for the complete payment process.
What this PR does:
profile edit
page to add payment options. Users can choose a default option for payment as well.dog owner
=> Hold captured fromdog owner
card => Conversation between parties added => if sitter accepts thenOption Accept
, if notOption Decline
.Option Accept
=> Charge thedog owner
=> Set the request state toPAID
.Option Decline
=> Release the Hold amount => Set the request state toDECLINE
.Screenshots / Videos:
Demo
below for the complete payment process.https://user-images.githubusercontent.com/60498899/140712473-6c60958b-ef11-4fd4-a728-3d0ad6b8f5fb.mov
Any information needed to test this feature:
Team Scallops
under email:teamscallops@gmail.com
and password:hatchwaysteamscallops2021@
closes #5 , #22 , #34