docs: fix authentication callback descriptions to include all query parameters (#10932)

This commit is contained in:
Shahed Nasser
2025-01-13 15:12:06 +02:00
committed by GitHub
parent 55ff7e4dcd
commit 4250c292eb
18 changed files with 178 additions and 188 deletions
@@ -36,15 +36,15 @@ For example:
<CodeTab label="Using Workflow" value="workflow">
```ts
import { createPaymentCollectionForCartWorkflow } from "@medusajs/medusa/core-flows";
import { createPaymentCollectionForCartWorkflow } from "@medusajs/medusa/core-flows"
// ...
await createPaymentCollectionForCartWorkflow(req.scope)
.run({
input: {
cart_id: "cart_123"
}
cart_id: "cart_123",
},
})
```
@@ -77,7 +77,7 @@ For example:
<CodeTab label="Using Workflow" value="workflow">
```ts
import { createPaymentSessionsWorkflow } from "@medusajs/medusa/core-flows";
import { createPaymentSessionsWorkflow } from "@medusajs/medusa/core-flows"
// ...
@@ -86,7 +86,7 @@ const { result: paymentSesion } = await createPaymentSessionsWorkflow(req.scope)
input: {
payment_collection_id: "paycol_123",
provider_id: "stripe",
}
},
})
```
@@ -124,13 +124,13 @@ For example:
<CodeTab label="Using Step" value="workflow">
```ts
import { authorizePaymentSessionStep } from "@medusajs/medusa/core-flows";
import { authorizePaymentSessionStep } from "@medusajs/medusa/core-flows"
// ...
authorizePaymentSessionStep({
id: "payses_123",
context: {}
context: {},
})
```
@@ -140,7 +140,7 @@ authorizePaymentSessionStep({
```ts
const payment = authorizePaymentSessionStep({
id: "payses_123",
context: {}
context: {},
})
```