DEV Community

Cover image for ๐Ÿ’ธ How Does Currency Conversion Really Work When You Pay Internationally?
Aditya Pandey
Aditya Pandey

Posted on

๐Ÿ’ธ How Does Currency Conversion Really Work When You Pay Internationally?

Ever wondered what happens behind the scenes when you pay $100 in USD and the seller receives EUR on the other side of the world?

Letโ€™s demystify foreign exchange (forex) from a system architecture perspective. ๐Ÿง ๐ŸŒ


๐Ÿ“ฆ Real-World Example: USD โ†’ EUR

Letโ€™s say Bob (a buyer in the U.S.) pays $100 USD, and Alice (a seller in Europe) wants to receive EUR.

Hereโ€™s what typically happens under the hood, using PayPal as a third-party payment provider:

1๏ธโƒฃ Bob sends $100 USD

โ†’ Money moves from Bobโ€™s bank (Bank B) to PayPalโ€™s account in Bank P1 (USD account).

2๏ธโƒฃ PayPal initiates currency conversion

โ†’ It works with its forex partner (Bank E) and sends the $100 to its USD account in Bank E.

3๏ธโƒฃ Currency exchange takes place

โ†’ Bank E's funding pool exchanges $100 USD for โ‚ฌ88 EUR (rate-dependent).

4๏ธโƒฃ PayPalโ€™s EUR account in Bank E is credited with โ‚ฌ88 EUR.

5๏ธโƒฃ PayPal moves โ‚ฌ88 to its EUR account in Bank P2.

6๏ธโƒฃ Finally, Aliceโ€™s account in Bank A receives the โ‚ฌ88 EUR.

๐Ÿ“Œ Result: Seamless user experience โ€” but a multi-layered technical operation.


๐ŸŒ What Powers This Behind the Scenes?

The Forex Market is a massive, hierarchical engine of liquidity:

๐Ÿ”น Retail Layer โ€“ Where platforms like PayPal operate

โ†’ They often pre-purchase currencies to avoid delays and reduce volatility.

๐Ÿ”น Wholesale Market โ€“ Managed by large banks and forex providers

โ†’ Handles bulk currency swaps and orders from many retail sources.

๐Ÿ”น Top-Level Participants โ€“ Major multinational banks

โ†’ These are the ultimate liquidity providers, moving billions daily.

๐Ÿ“ˆ When liquidity in Bank E's funding pool runs low, it goes upstream:

  • ๐Ÿ“ค Sell USD to the wholesale market
  • ๐Ÿ’ถ Buy EUR in return
  • ๐Ÿ” Those EURs are cycled back to refill the retail layer

๐Ÿง  Why This Matters

Understanding how FX works helps you see:

  • How payment gateways, banks, and FX providers cooperate
  • Where delays, fees, and rate differences arise
  • Why platforms hedge currency risk using pre-purchased reserves

๐Ÿ’ฌ Have you ever experienced a surprise fee or rate while making an international payment?

Letโ€™s chat about what might have been happening in the background!

Top comments (0)