Fork me on GitHub

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

Created account
Created account

Store talents photo in AWS S3

S3 Bucket
S3 Bucket

Usage in Task 3

Image links using S3 Bucket

Image Links
Image Links

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

V1 Sequence Diagram
V1 Sequence Diagram

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

Link to code

Stripe
Stripe

Stripe validation

Link to code

Postman-http
Postman-http

Stripe loading gif

Link to code

Loading
Loading

©2018 francisyzy - Github