Raw
1 type: object
2 description: The payment session's details.
3 x-schemaName: BasePaymentSession
4 required:
5 - id
6 - amount
7 - currency_code
8 - provider_id
9 - data
10 - status
11 properties:
12 id:
13 type: string
14 title: id
15 description: The payment session's ID.
16 amount:
17 type: number
18 title: amount
19 description: The payment session's amount.
20 currency_code:
21 type: string
22 title: currency_code
23 description: The payment session's currency code.
24 example: usd
25 provider_id:
26 type: string
27 title: provider_id
28 description: The ID of the payment provider processing this session.
29 data:
30 type: object
31 description: >-
32 The payment session's data, useful for the payment provider processing the
33 payment.
34 externalDocs:
35 url: >-
36 https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property
37 context:
38 type: object
39 description: The context around the payment, such as the customer's details.
40 example:
41 customer:
42 id: cus_123
43 status:
44 type: string
45 description: The payment session's status.
46 enum:
47 - error
48 - authorized
49 - canceled
50 - captured
51 - pending
52 - requires_more
53 authorized_at:
54 type: string
55 title: authorized_at
56 description: The date the payment session was authorized.
57 format: date-time
58 payment_collection:
59 type: object
60 payment:
61 $ref: ./BasePayment.yaml