Navigation
Markdown version available here
Task 5
Implement Stripe payment gateway and store talent in AWS S3.
Requirements
Add Stripe. Tutorial
Store talents photo in AWS S3
Get AWS Educate Account
AWS Deliverables
Create AWS Account

Store talents photo in AWS S3

Usage in Task 3
Image links using S3 Bucket

Code
The code for Task 5 can be found in this branch
Dependencies Used
Stripe.net
Stripe.net is a sync/async .NET 4.5+ client, and a portable class library for the Stripe API. (Official Library)
Nuget package manager Install-Package Stripe.net
Sequence Diagram
Stripe API
Code to generate sequence diagram using js-sequence-diagrams
Title: Stripe Payment
participant User
participant Browser
participant StripeView
participant StripeController
User->Browser: Visits http://localhost:55905/Stripe/Stripe
Browser->StripeController: [HttpGet]Stripe
StripeController->Browser: return View
Browser->User: Display Stripe Payment View
User->Browser: Enter Payment Details
Browser->StripeView: Create Token
StripeView->StripeView: GenerateToken
Note over StripeView: Using Stripe Library
StripeView->StripeController: [HttpPost] Charge
StripeController->StripeController: ProcessPayment
StripeController->Stripe Payment Server: StripeChargeService
Stripe Payment Server->StripeController: Charge ID
StripeController->Browser: return View(Success)
Browser->User: Display Success Page
Testing
Stripe

Stripe validation

Stripe loading gif

©2018 francisyzy - Github