Skip to content
Shop

CommunityJoin Our PatreonDonate

Sponsored Ads

Sponsored Ads

Payment Service

Functional Requirements

Non Functional Requirements

The UI

User Flow

User Personas

Schema

Transaction

ColumnTypeDescription
checkout_idintunique checkout
psp_tokenstrpayment service provider token. Generated when you register (Paypal or Stripe)
amountstramount of transaction
currencystrUSD,CAD,etc
statusstrpending,completed,failed

The Process

UML Sequence Diagram

Business Rules

  • Every purchase page will have a uniquely generated checkout_id and corresponding token generated by the PSP
  • Always send PSP generated token to PSP fo every request when a buyer clicks "Buy Now" twice.
  • You should never use floating point numbers for money. Use BigDecimal instead.

System Design

System Design

Sequence Diagram

Technical Specifications Documentation

  • If we use card schemes over using a payment service provider (payment gateway), we will need to comply with PCI DSS, PSD2, KYC, AML and other compliance standards and regulations to protect against identity theft. The process is different for every country. Using PSP spares us from storing card data.
  • Protocols, Signatures, PCI DSS, MFA, Tokenization, Databases
  • Authorization
    1. Customer makes an online purchase by filling out credit card information
    2. Merchant website receives information and sends to PSP
    3. PSP routes information to a processor
    4. Issuing bank sends authorization or declination to processor
    5. Processor routes transaction results to PSP
    6. PSP sends results o merchant
    7. Merchant decides to accept or reject purchase
  • Settlement
    1. Merchant informs payment processing service to settle transactions
    2. PSP sends transaction info to processor
    3. Processor checks the information and forwards settled transaction information to issuing bank
    4. Issuing Bank transfers funds to processor
    5. Processor routes funds to acquiring bank
    6. Acquiring bank credits merchants bank account
    7. Issuing Bank includes merchants charge on customers credit card account.

Resources

Terms

Credit decisioning refers to the process of assessing the creditworthiness of a borrower or applicant in order to determine the level of risk involved in lending money or extending credit.

ACH stands for Automated Clearing House , a network that allows for electronic funds transfers (EFTs) between banks and credit unions. ACH transactions require a debit from one bank and a credit to another.