E-Commerce

Chapter 6
Electronic Payments, FinTech and Transaction Processing

Bachelors Program in IT
E-Commerce   •   Bachelor

Electronic Payments, FinTech and Transaction Processing

Introduction

Electronic payment is the mechanism through which a buyer’s payment instruction is authenticated, authorized, transferred, recorded, and ultimately settled to a seller. In e-commerce, payment is not a single event occurring at checkout. It is a coordinated process involving customers, merchants, payment gateways, payment processors, acquiring banks, issuing banks, card networks, digital-wallet providers, regulators, and fraud-management systems.

A successful payment system must achieve several objectives simultaneously: convenience, speed, availability, security, interoperability, legal compliance, accurate accounting, and acceptable cost. These objectives may conflict. For example, stronger authentication can reduce fraud but introduce customer friction; instant settlement improves liquidity but may increase operational and fraud risk.

FinTech has expanded the range of payment instruments and changed the architecture of commerce. Mobile wallets, account-to-account payments, open banking, buy-now-pay-later services, tokenized cards, embedded finance, and digital currencies now operate alongside traditional card and bank-transfer systems. Understanding the underlying transaction lifecycle is therefore essential for IT professionals, e-commerce managers, software developers, auditors, and security specialists.

Learning Objectives

By the end of this chapter, students should be able to:

  • distinguish payment gateways, payment processors, merchant accounts, acquiring banks, issuing banks, and card networks;
  • explain how cards, wallets, bank transfers, buy-now-pay-later products, and digital currencies support e-commerce;
  • describe authorization, capture, clearing, settlement, refunds, reversals, and chargebacks;
  • evaluate fraud controls, authentication methods, tokenization, and payment security;
  • analyze payment costs, conversion, risk, liquidity, and operational trade-offs;
  • explain major payment-compliance responsibilities and ethical issues; and
  • design a high-level payment architecture for an online business.

1. The Payment Ecosystem

A payment transaction usually includes the following participants:

  • Cardholder or payer: the individual or organization initiating payment.
  • Merchant: the seller accepting payment.
  • Payment gateway: the technology interface that securely collects payment data and transmits transaction messages. It often provides hosted checkout, APIs, encryption, tokenization, and fraud-screening services.
  • Payment processor: the service that routes transaction messages between the merchant, acquirer, network, and issuer and often performs technical and operational processing.
  • Acquirer or acquiring bank: the financial institution that enables a merchant to accept card payments and receives settlement funds for the merchant.
  • Merchant account: a specialized account or acquiring relationship used to receive card-payment proceeds. It is not necessarily the same as the merchant’s ordinary bank account.
  • Card network: a scheme such as Visa, Mastercard, or a domestic card system that defines message standards, operating rules, and routing arrangements.
  • Issuer or issuing bank: the institution that issued the customer’s card or account and decides whether a payment can be approved.
  • Wallet provider: a service that stores payment credentials, tokens, or account references and initiates payments on behalf of a customer.
  • Regulators and payment institutions: organizations responsible for consumer protection, anti-money-laundering controls, licensing, privacy, and payment-system supervision.

The gateway and processor are sometimes supplied by the same company, but their conceptual roles differ. The gateway is primarily an acceptance and communication layer; the processor performs routing and transaction processing. A modern provider may combine gateway, processor, fraud, reporting, and payout services in one platform.

Simplified electronic card payment flow CustomerPayer MerchantCheckout Gateway /Processor AcquirerMerchant side IssuerCustomer side Authorization and settlement messages The response returns through the same processing chain
Simplified electronic card payment flow
Figure: Simplified electronic card payment flow

Figure: Simplified relationships in a card-payment transaction. Actual routing varies by scheme, geography, payment method, and provider.

2. Major Electronic Payment Methods

2.1 Payment cards

Cards may be credit, debit, prepaid, or commercial. A credit card permits borrowing up to a limit; a debit card normally draws on a deposit account; a prepaid card uses previously loaded value. Card-not-present transactions, typical of e-commerce, have greater fraud exposure than card-present transactions because the physical card and cardholder may not be observed.

Card data commonly includes a primary account number, expiry date, and security code. Merchants should avoid storing sensitive card data unless there is a compelling, properly controlled reason. Network tokens and processor tokens allow a merchant to reference a payment credential without retaining the original card number. Tokenization reduces exposure but does not eliminate all compliance obligations.

2.2 Digital wallets

A digital wallet may store a tokenized card, bank account, prepaid balance, or a wallet-specific balance. Mobile wallets can use device credentials, biometrics, and near-field communication for in-person payments. Online wallets can simplify checkout by allowing customers to authenticate with the wallet provider rather than repeatedly entering card details.

Wallets improve convenience and can reduce the merchant’s direct handling of payment credentials. However, they introduce dependency on the wallet provider, possible account-takeover risk, platform fees, and questions about data portability and interoperability.

2.3 Bank transfers and account-to-account payments

A bank transfer moves funds between accounts through a domestic or international payment system. Examples include credit transfers, direct debits, real-time payment rails, and open-banking payment initiation. Transfers may have lower card-related costs and can support large-value transactions, but they may provide less familiar consumer protection, delayed confirmation, or more difficult reversibility.

A merchant must distinguish between an instruction and irrevocable receipt of funds. A customer’s screenshot or a preliminary status message is not sufficient evidence of settlement. Systems should verify the bank’s confirmation through a trusted interface or reconciliation process.

2.4 Buy-now-pay-later

Buy-now-pay-later (BNPL) services allow a customer to obtain goods immediately while paying the provider over several installments. The provider commonly pays the merchant, less a fee, and assumes some or all customer-credit risk. BNPL can increase affordability and conversion but may encourage over-borrowing, obscure the effective cost of credit, and create regulatory concerns regarding affordability assessment, disclosures, complaints, and vulnerable consumers.

Merchants should evaluate BNPL not only by increased sales but also by net margin, refund handling, customer support, provider concentration, and compliance obligations. The payment method must not be presented as cost-free when fees, late charges, or credit consequences apply.

2.5 Digital currencies and crypto-assets

Digital currencies include central-bank digital currency proposals, privately issued electronic money, stablecoins, and decentralized crypto-assets. Their technical properties differ substantially. A decentralized crypto-asset may use a public blockchain and cryptographic signatures; a stablecoin attempts to maintain a reference value; a central-bank digital currency would be a liability of a central bank if introduced under the relevant legal framework.

Potential benefits include programmable transfers, global reach, and settlement without some traditional intermediaries. Risks include price volatility, private-key loss, irreversible transactions, sanctions exposure, money laundering, uncertain consumer protection, network congestion, and environmental or governance concerns. A merchant accepting crypto-assets must determine when payment is final, how exchange-rate risk is managed, how refunds are made, and what tax and reporting rules apply.

3. The Transaction Lifecycle

A payment lifecycle contains distinct states. Treating them as interchangeable is a common source of accounting and fulfillment errors.

  1. Checkout and payment-data capture: The customer selects a method and supplies credentials or authenticates through a provider.
  2. Authentication: The system checks whether the payer is plausibly the legitimate account holder. Examples include a password, one-time code, device possession, biometrics, or risk-based authentication.
  3. Authorization: The issuer or account provider decides whether the transaction may proceed, considering funds, credit, account status, fraud signals, and payment rules. Authorization is not the same as settlement.
  4. Capture: The merchant requests that an authorized amount be submitted for clearing. Some systems authorize and capture immediately; others authorize first and capture later, such as when goods ship.
  5. Clearing: Transaction details and financial obligations are exchanged and calculated among the parties.
  6. Settlement: Funds are transferred, usually from the issuer through the network and acquirer to the merchant’s settlement account, subject to fees, reserves, timing, and adjustments.
  7. Reconciliation: The merchant matches orders, payment records, fees, refunds, payouts, and bank statements.
  8. Post-transaction events: A transaction may later receive a refund, reversal, dispute, chargeback, adjustment, or fraud-related restriction.

A robust implementation uses an explicit state machine. For example, an order might progress from created to payment_pending, authorized, captured, fulfilled, and settled. Failure states such as declined, cancelled, refunded, and disputed should be defined separately. Idempotency keys prevent a network retry from creating two captures or two orders.

Authorization and settlement example

Suppose a customer places an order for $120. The issuer authorizes $120. The merchant then discovers that one item is unavailable and captures only $100. The unused $20 authorization should be released or allowed to expire according to provider rules. The merchant must not treat the original $120 authorization as revenue. Revenue recognition, inventory fulfillment, payment capture, and bank settlement are related but distinct accounting and operational events.

4. Payment Economics and Performance Measures

Payment providers may charge a percentage fee, a fixed fee, cross-border or currency-conversion fees, dispute fees, or other service charges. A simple transaction-fee model is:

F = rA + f

where F is the fee in currency units, r is the percentage rate expressed as a decimal, A is the transaction amount, and f is the fixed fee in currency units. This formula applies only when the provider’s pricing consists of one proportional fee and one fixed fee; taxes, refunds, minimums, and other charges may require additional terms.

For a $80 transaction at 2.9% plus $0.30:

F = 0.029 × 80 + 0.30 = 2.62

The merchant receives $77.38 before any other adjustments. The calculation is dimensionally consistent because the rate is unitless and both resulting terms are currency amounts.

Important operational metrics include:

  • Authorization rate: approved authorization attempts divided by total valid authorization attempts. It should be segmented by country, issuer, device, and payment method because an aggregate rate can conceal problems.
  • Payment conversion rate: completed payments divided by checkout attempts or another clearly defined denominator.
  • Chargeback rate: chargebacks divided by an agreed transaction or transaction-value base. Card schemes and regulators may define thresholds differently.
  • Cost per successful transaction: total payment-related cost divided by successful transactions.
  • Settlement time: elapsed time between capture and usable merchant funds.
  • False-decline rate: legitimate transactions rejected by risk controls divided by legitimate attempted transactions. It is difficult to measure because the legitimacy of declined transactions is partly unobservable.

The merchant should optimize contribution margin rather than a single metric. A method with a high authorization rate may still be unattractive if its fees, fraud losses, refunds, and support costs are excessive.

5. Refunds, Reversals, and Chargebacks

A refund is initiated by the merchant or provider to return all or part of a payment. Refunds may be full, partial, or linked to specific items. The system should record the original transaction identifier, refunded amount, reason, timestamp, and beneficiary.

A reversal cancels or releases an authorization before normal capture or settlement. It is often used when an order is cancelled or a duplicate authorization must be removed.

A chargeback is a payment dispute initiated through an issuer or payment scheme. The customer may claim unauthorized use, non-receipt, non-conforming goods, duplicate processing, or other recognized grounds. The issuer may provisionally remove funds from the acquirer or merchant while the case is reviewed. The merchant can respond with evidence such as delivery confirmation, customer authentication records, terms accepted at checkout, communication history, and a clear refund record.

Chargebacks are not simply another form of customer service refund. They involve scheme rules, deadlines, evidence requirements, and possible fees. A merchant should not retaliate against a customer for exercising legitimate dispute rights. At the same time, organized first-party misuse, sometimes called friendly fraud, requires evidence-based prevention and careful investigation.

6. Fraud Prevention and Payment Security

Fraud controls should be layered rather than dependent on one rule. Common controls include:

  • device and browser assessment;
  • IP address, location, and velocity analysis;
  • address and security-code verification where available;
  • behavioral analytics;
  • allowlists and blocklists;
  • transaction limits and manual review;
  • strong customer authentication;
  • tokenization and encryption;
  • confirmation of delivery and account changes; and
  • post-transaction monitoring for unusual refunds or disputes.

A control can generate either a true positive, false positive, true negative, or false negative. Excessive blocking reduces fraud but rejects legitimate customers. Weak controls improve apparent conversion while increasing fraud losses and disputes. Risk decisions should therefore be tested with representative data and monitored for changes in customer behavior.

Strong customer authentication generally uses two or more independent factors from categories such as knowledge, possession, and inherence. A password and a second password are not independent categories. Risk-based exemptions may be available under applicable law, but an exemption is not a guarantee that liability or fraud risk disappears.

Secure design practices include minimizing stored payment data, separating payment and order services, enforcing access control, logging administrative activity, applying secure software development, rotating secrets, testing webhooks, and validating server-to-server status rather than trusting a browser redirect. Webhook handlers should be authenticated, idempotent, and resilient to delayed or duplicated messages.

7. Compliance, Governance, and Ethics

Payment compliance varies by jurisdiction, product, transaction type, and organizational role. Common areas include:

  • Payment-card security standards: Organizations handling card data may have obligations under the relevant card-industry security standard. Outsourcing processing reduces technical exposure but does not automatically remove merchant responsibility.
  • Privacy and data protection: Payment and identity data must be collected for legitimate purposes, limited to what is necessary, protected appropriately, and retained only as long as justified by law and business need.
  • Anti-money laundering and counter-terrorist financing: Certain payment providers must identify customers, monitor transactions, report suspicious activity, and maintain records.
  • Know-your-customer and sanctions controls: Cross-border services may require screening customers, beneficiaries, and transactions against applicable restrictions.
  • Consumer protection: Prices, fees, recurring billing, credit terms, cancellation rights, refund rules, and dispute procedures must be presented clearly.
  • Licensing and safeguarding: Payment institutions and electronic-money providers may require authorization and may have obligations to safeguard customer funds.
  • Accessibility and fairness: Checkout should be usable by people with disabilities, and risk models should be evaluated for discriminatory effects.

Governance requires clear accountability. A merchant should know which party controls customer authentication, stores credentials, determines fraud decisions, holds funds, handles complaints, and reports incidents. Contracts should address service availability, data ownership, subcontractors, breach notification, audit rights, reserves, termination, and fund access.

Ethically, payment design should avoid dark patterns such as hiding installment costs, making cancellation difficult, or presenting a high-risk credit product as a harmless checkout option. AI-based fraud systems should be explainable enough for operational review, monitored for drift, and subject to human escalation in significant cases.

8. Designing a Payment Architecture

A practical architecture separates concerns:

  1. Presentation layer: checkout interface, wallet buttons, accessibility, and consent notices.
  2. Payment orchestration layer: provider selection, routing, retries, idempotency, currency handling, and state management.
  3. Provider integration layer: gateway APIs, token vaults, bank-transfer interfaces, and webhooks.
  4. Risk layer: rules, scoring, authentication decisions, velocity controls, and manual review.
  5. Order and fulfillment layer: reservation of inventory, capture timing, shipping, cancellation, and returns.
  6. Ledger and reconciliation layer: immutable payment events, fees, refunds, disputes, payouts, and accounting mappings.
  7. Monitoring and governance layer: alerts, audit logs, access controls, compliance reports, and incident response.

The architecture should support failure. A timeout does not prove that a transaction failed; retrying without an idempotency key may duplicate a payment. Conversely, a successful browser redirect does not prove that settlement occurred. The server should query or receive a trusted provider status and reconcile it with the internal ledger.

Multi-provider routing can improve resilience and negotiate costs, but it increases complexity. Providers differ in currencies, decline codes, refund behavior, dispute processes, and data formats. Routing decisions should be documented and tested rather than based solely on headline fees.

9. Applied Case: Illustrative Marketplace Payment Redesign

Background

An illustrative online marketplace sells home equipment in three countries. It accepts cards and wallets through one provider. Customers report occasional duplicate charges, while the finance team cannot easily match provider payouts to individual orders. Chargebacks are increasing, particularly for high-value deliveries.

Problem analysis

Investigation finds three weaknesses. First, the checkout service retries a request after a timeout without an idempotency key. Second, fulfillment begins when the browser returns to the “success” page rather than when a server-side payment status is confirmed. Third, the marketplace stores provider reports separately from its order database and has no daily reconciliation process.

Approach and solution

The marketplace introduces a payment state machine with unique order and payment-attempt identifiers. Every create, capture, refund, and reversal request includes an idempotency key. Fulfillment is released only after a verified authorization or capture event, according to the product’s risk policy. Webhooks are authenticated, stored as events, and processed idempotently.

The company uses tokenized credentials and delegates card-data storage to a compliant provider. It adds device and velocity checks for high-value orders, step-up authentication when risk is elevated, delivery evidence, and a manual review queue. A reconciliation service imports daily provider reports, matches transaction identifiers and amounts, flags unmatched items, and reports fees, refunds, and chargebacks to finance.

Outcome

The redesign reduces duplicate captures, improves order-status accuracy, and enables faster investigation of disputes. It also makes failures more visible: an unresolved payment event becomes an operational exception rather than silently disappearing. The marketplace accepts that stronger controls may slightly reduce immediate conversion, but evaluates success using contribution margin, fraud losses, dispute costs, customer complaints, and settlement reliability.

Learning points

The case demonstrates that payment quality depends on architecture and governance, not merely on adding a payment button. Idempotency, trusted status confirmation, event records, reconciliation, and evidence management are essential controls. It also illustrates the importance of evaluating payment systems across the complete lifecycle rather than measuring authorization alone.

10. Contemporary Developments and Limitations

Real-time payments are reducing the delay between initiation and receipt, but speed can make fraud and mistaken transfers harder to reverse. Open banking can create alternatives to cards, yet consent management, reliability, liability allocation, and third-party security remain important.

Embedded finance integrates payments, credit, insurance, or accounts into non-financial applications. This can improve user experience but may obscure which organization is regulated and responsible. Programmable payments and stablecoins may support automated settlement, although legal finality, reserves, governance, and consumer protection must be established rather than assumed.

Artificial intelligence is increasingly used for fraud detection, customer support, underwriting, and dispute evidence preparation. Its limitations include biased training data, concept drift, adversarial manipulation, privacy concerns, and limited explanations. Human oversight, model validation, access controls, and documented performance thresholds remain necessary.

No payment method is universally superior. Cards offer broad acceptance and established dispute frameworks; bank transfers may reduce cost; wallets improve convenience; BNPL can expand purchasing options but increases credit concerns; digital currencies may enable new settlement models but introduce volatility and governance risks. Selection should reflect customer needs, geography, product risk, regulation, operational capability, and total cost.

Best-Practice Checklist

  • Map every payment state from initiation through settlement and post-transaction events.
  • Use provider-hosted fields or tokenization to minimize sensitive-data exposure.
  • Apply idempotency to all retriable payment operations.
  • Treat authorization, capture, settlement, refund, and chargeback as different events.
  • Verify payment status server-side before releasing valuable goods.
  • Reconcile orders, provider records, payouts, fees, refunds, and bank statements.
  • Measure conversion together with fraud, disputes, fees, support cost, and liquidity.
  • Use layered, monitored fraud controls and provide escalation for legitimate customers.
  • State credit, installment, recurring-payment, and refund terms clearly.
  • Review provider contracts, regulatory duties, privacy requirements, and incident plans.

Chapter Summary

Electronic payments are coordinated financial and information processes involving merchants, gateways, processors, acquirers, issuers, networks, wallets, banks, and regulators. Cards, wallets, transfers, BNPL, and digital currencies differ in acceptance, cost, risk, finality, consumer protection, and compliance obligations. A transaction moves through authentication, authorization, capture, clearing, settlement, reconciliation, and possible refund or dispute stages; these stages must not be conflated.

Effective payment architecture uses explicit states, idempotency, tokenization, secure webhooks, server-side confirmation, reconciliation, and layered fraud controls. Payment performance should be judged through total economic and customer outcomes rather than authorization or conversion alone. Compliance includes security, privacy, consumer protection, anti-money-laundering, licensing, sanctions, accessibility, and fair treatment. Emerging technologies create opportunities but also introduce new risks involving speed, data, credit, algorithmic decision-making, and governance.

Key Terms

Payment gateway: Technology that securely collects and transmits payment instructions.

Payment processor: Service that routes and processes payment messages.

Acquirer: Financial institution serving the merchant side of a payment.

Issuer: Institution that provides the customer’s card or payment account.

Merchant account: Acquiring arrangement used to receive card-payment proceeds.

Authorization: Approval or refusal of a requested transaction.

Capture: Request to complete an authorized payment.

Clearing: Exchange and calculation of transaction obligations.

Settlement: Transfer of funds between participating institutions.

Tokenization: Replacement of sensitive payment data with a controlled token.

Digital wallet: Service that stores or references payment credentials or balances.

BNPL: Credit or installment arrangement allowing immediate purchase and later payments.

Refund: Merchant-initiated return of payment funds.

Reversal: Cancellation or release of an authorization.

Chargeback: Dispute process initiated through an issuer or payment scheme.

Idempotency: Property whereby repeating an operation produces one effective result.

Strong customer authentication: Authentication using multiple independent factor categories.

Reconciliation: Matching operational, provider, payout, and accounting records.

False positive: Legitimate transaction incorrectly identified as risky.

Payment orchestration: Coordinated routing and management of multiple payment providers or methods.

Review Questions

Short Answer Questions

  1. What is the difference between a payment gateway and a payment processor?
  2. Why is authorization not equivalent to settlement?
  3. Define tokenization and explain one security benefit.
  4. What is a chargeback, and how does it differ from a refund?
  5. Why are idempotency keys important in payment APIs?

Long Answer Questions

  1. Explain the complete lifecycle of an e-commerce card transaction from checkout through reconciliation.
  2. Compare cards, digital wallets, bank transfers, BNPL, and digital currencies using cost, convenience, risk, and consumer-protection criteria.
  3. Describe a layered fraud-control strategy for a card-not-present merchant.
  4. Discuss the legal, ethical, and governance responsibilities involved in operating an online payment system.
  5. Design a high-level payment architecture for a multinational online retailer and justify its major components.

Analytical / Application Questions

  1. A merchant experiences a high authorization rate but rising chargebacks and refund complaints. Which operational data would you examine, and what changes would you consider?
  2. A payment request times out after the customer clicks “Pay.” Explain how the merchant should determine the true status without creating a duplicate charge.
  3. A marketplace is considering BNPL and real-time bank transfers. Develop a decision framework that evaluates customer value, total cost, fraud, liquidity, compliance, and operational complexity.

Multiple Choice Questions with Answers

Question 1

Which participant primarily decides whether a card transaction can proceed based on the customer’s account status and available funds or credit?

A. Issuing bank

B. Payment gateway

C. Acquiring bank

D. Merchant

Correct Answer: A. Issuing bank

Question 2

What is the primary purpose of an idempotency key in a payment API?

A. To encrypt the customer’s password

B. To prevent a retry from creating a duplicate effective operation

C. To increase the card’s credit limit

D. To convert a refund into a chargeback

Correct Answer: B. To prevent a retry from creating a duplicate effective operation

Question 3

A payment has been authorized but not captured. What does this normally mean?

A. Funds have necessarily been settled to the merchant

B. The issuer has permitted the transaction, but completion has not yet been requested

C. The customer has received a refund

D. The transaction has already become a chargeback

Correct Answer: B. The issuer has permitted the transaction, but completion has not yet been requested

Question 4

A provider charges 2.9% plus $0.30 on an $80 transaction. What is the fee before other adjustments?

A. $2.32

B. $2.60

C. $2.62

D. $2.90

Correct Answer: C. $2.62

Question 5

Which practice best reduces the risk of releasing goods based only on a manipulated browser redirect?

A. Trusting the customer’s screenshot

B. Checking server-side provider status before fulfillment

C. Disabling all refunds

D. Storing more card numbers locally

Correct Answer: B. Checking server-side provider status before fulfillment

Question 6

Which statement best describes a chargeback?

A. A merchant-initiated promotional discount

B. A bank transfer used to fund a wallet

C. A dispute initiated through an issuer or payment scheme

D. A successful authorization awaiting capture

Correct Answer: C. A dispute initiated through an issuer or payment scheme

Question 7

Which combination represents two independent strong-authentication factor categories?

A. Password and another password

B. Card number and card expiry date

C. Device possession and biometric characteristic

D. Email address and billing address

Correct Answer: C. Device possession and biometric characteristic

Question 8

What is the main purpose of payment reconciliation?

A. To replace customer authentication

B. To match orders, provider records, payouts, fees, and adjustments

C. To guarantee that every transaction is approved

D. To eliminate the need for accounting records

Correct Answer: B. To match orders, provider records, payouts, fees, and adjustments

Question 9

Which is a significant limitation of BNPL for merchants and consumers?

A. It cannot be used for online purchases

B. It may encourage over-borrowing and create disclosure or affordability concerns

C. It always settles directly through a blockchain

D. It eliminates all merchant fees

Correct Answer: B. It may encourage over-borrowing and create disclosure or affordability concerns

Question 10

Which control is most directly associated with minimizing exposure to raw card numbers?

A. Tokenization

B. Inventory forecasting

C. Manual shipping review

D. Currency rounding

Correct Answer: A. Tokenization

E-Commerce
Chapter 6 of 15