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