Balance Sheet Components - Property and Equipment, Net (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Property, Plant and Equipment [Line Items] | |||
| Total | $ 1,520 | $ 1,105 | |
| Less: Accumulated depreciation and amortization | (808) | (468) | |
| Property and equipment, net | 712 | 637 | |
| Depreciation expense | 126 | 113 | $ 80 |
| Capitalized software and website development costs | 362 | 303 | 202 |
| Amortization of capitalized software and website development costs | 256 | 157 | $ 63 |
| Equipment for merchants | |||
| Property, Plant and Equipment [Line Items] | |||
| Total | 167 | 156 | |
| Computer equipment and software | |||
| Property, Plant and Equipment [Line Items] | |||
| Total | 77 | 68 | |
| Capitalized software and website development costs | |||
| Property, Plant and Equipment [Line Items] | |||
| Total | 953 | 591 | |
| Leasehold improvements | |||
| Property, Plant and Equipment [Line Items] | |||
| Total | 217 | 164 | |
| Office equipment | |||
| Property, Plant and Equipment [Line Items] | |||
| Total | 66 | 52 | |
| Construction in progress | |||
| Property, Plant and Equipment [Line Items] | |||
| Total | $ 40 | $ 74 | |