docs: add integrations page (#7421)
* add integrations page * update payment provider docs * use stripe icon
This commit is contained in:
@@ -18,7 +18,7 @@ By default, Medusa uses the In-Memory Cache Module. This module uses a plain Jav
|
||||
|
||||
This is useful for development. However, for production, it's highly recommended to use other Cache Modules, such as the Redis Cache Module.
|
||||
|
||||
<ChildDocs type="item" filters={["Guides"]} onlyTopLevel={true} />
|
||||
<ChildDocs type="item" hideItems={["Guides"]} onlyTopLevel={true} />
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ By default, Medusa uses the Local Event Module. This module uses Node’s EventE
|
||||
|
||||
This is useful for development. However, for production, it’s highly recommended to use other Event Modules, Redis Event Module.
|
||||
|
||||
<ChildDocs type="item" filters={["Guides"]} onlyTopLevel={true} />
|
||||
<ChildDocs type="item" hideItems={["Guides"]} onlyTopLevel={true} />
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ By default, Medusa uses the Local File Module. This module uploads files to the
|
||||
|
||||
This is useful for development. However, for production, it’s highly recommended to use other File Modules, such as the S3 Module.
|
||||
|
||||
<ChildDocs type="item" filters={["Guides"]} onlyTopLevel={true} />
|
||||
<ChildDocs type="item" hideItems={["Guides"]} onlyTopLevel={true} />
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ By default, Medusa uses the Local Notification Module which only simulates sendi
|
||||
|
||||
Medusa provides other Notification Modules that actually send notifications, such as the SendGrid Notification Provider Module.
|
||||
|
||||
<ChildDocs type="item" filters={["Guides"]} onlyTopLevel={true} />
|
||||
<ChildDocs type="item" hideItems={["Guides"]} onlyTopLevel={true} />
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -8,4 +8,4 @@ export const metadata = {
|
||||
|
||||
This section includes documentation for official Medusa architectural modules.
|
||||
|
||||
<ChildDocs filters={["Guides"]} />
|
||||
<ChildDocs hideItems={["Guides"]} />
|
||||
@@ -10,4 +10,4 @@ Workflow engine modules handle tracking and recording the transactions and statu
|
||||
|
||||
Medusa uses the In-Memory Workflow Engine Module by default. For production purposes, it's recommended to use the Redis Engine Module instead.
|
||||
|
||||
<ChildDocs type="item" filters={["Guides"]} onlyTopLevel={true} />
|
||||
<ChildDocs type="item" hideItems={["Guides"]} onlyTopLevel={true} />
|
||||
|
||||
@@ -1,19 +1,25 @@
|
||||
import { ChildDocs } from "docs-ui"
|
||||
|
||||
export const metadata = {
|
||||
title: `Payment Provider`,
|
||||
title: `Payment Provider Module`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
In this document, you’ll learn what a payment provider is.
|
||||
In this document, you’ll learn what a payment provider module is.
|
||||
|
||||
## What's a Payment Provider?
|
||||
## What's a Payment Provider Module?
|
||||
|
||||
A payment provider handles payment processing. It can integrate third-party payment providers, such as Stripe or PayPal.
|
||||
A payment provider module registers a payment provider that handles payment processing. It can integrate third-party payment providers, such as Stripe.
|
||||
|
||||
To authorize a payment amount with a payment provider, a payment session is created and associated with that payment provider. The payment provider is then used to handle the authorization.
|
||||
|
||||
After the payment session is authorized, the payment provider is associated with the resulting payment and handles its payment processing, such as to capture or refund payment.
|
||||
|
||||
### List of Payment Provider Modules
|
||||
|
||||
<ChildDocs type="item" />
|
||||
|
||||
---
|
||||
|
||||
## System Payment Provider
|
||||
@@ -24,7 +30,7 @@ The Payment Module provides a `system` payment provider that acts as a placehold
|
||||
|
||||
## How are Payment Providers Created?
|
||||
|
||||
A payment provider is a TypeScript or JavaScript class that extends the `AbstractPaymentProvider` imported from `@medusajs/utils`. It can then be used in a payment plugin or exported in a provider module.
|
||||
A payment provider is a TypeScript or JavaScript class that extends the `AbstractPaymentProvider` imported from `@medusajs/utils`. It can then be exported as the main service of a module.
|
||||
|
||||
<Note title="Tip">
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
import { ChildDocs } from "docs-ui"
|
||||
|
||||
export const metadata = {
|
||||
title: `Integrations`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
Find in this document Medusa's modules that integrate third-party services and systems.
|
||||
|
||||
## Payment
|
||||
|
||||
Learn how to create a payment provider in [this guide](/references/payment/provider).
|
||||
|
||||
<ChildDocs showItems={["Payment"]} hideTitle />
|
||||
|
||||
---
|
||||
|
||||
## Notification
|
||||
|
||||
Learn how to create a payment provider in [this guide](/references/notification-provider-module).
|
||||
|
||||
<ChildDocs showItems={["Notification"]} hideTitle />
|
||||
|
||||
---
|
||||
|
||||
## File
|
||||
|
||||
Learn how to create a payment provider in [this guide](/references/file-provider-module).
|
||||
|
||||
<ChildDocs showItems={["File"]} hideTitle />
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
UsersSolid,
|
||||
PuzzleSolid,
|
||||
EnvelopeSolid,
|
||||
MagnifyingGlass,
|
||||
ArrowDownTray,
|
||||
ChartBar,
|
||||
Text,
|
||||
@@ -17,7 +16,9 @@ import {
|
||||
NextJs,
|
||||
BuildingStorefront,
|
||||
CreditCardSolid,
|
||||
ClockSolid
|
||||
ClockSolid,
|
||||
DocumentTextSolid,
|
||||
Stripe
|
||||
} from "@medusajs/icons"
|
||||
|
||||
# Medusa Learning Resources
|
||||
@@ -69,34 +70,38 @@ Follow the [Medusa Book](https://medusa-docs-v2-git-docs-v2-medusajs.vercel.app)
|
||||
}
|
||||
]} />
|
||||
|
||||
{/* ## Plugins
|
||||
---
|
||||
|
||||
## Integrations
|
||||
|
||||
<CardList items={[
|
||||
{
|
||||
startIcon: <Stripe className="[&>path]:fill-medusa-fg-subtle" />,
|
||||
title: "Stripe",
|
||||
href: "/commerce-modules/payment/payment-provider/stripe",
|
||||
showLinkIcon: false
|
||||
},
|
||||
{
|
||||
startIcon: <EnvelopeSolid />,
|
||||
title: "SendGrid",
|
||||
href: "/plugins/notifications/sendgrid",
|
||||
href: "/architectural-modules/notification/sendgrid",
|
||||
showLinkIcon: false
|
||||
},
|
||||
{
|
||||
startIcon: <MagnifyingGlass />,
|
||||
title: "MeiliSearch",
|
||||
href: "/plugins/search/meilisearch",
|
||||
showLinkIcon: false
|
||||
},
|
||||
{
|
||||
startIcon: <ChartBar />,
|
||||
title: "Segment",
|
||||
href: "/plugins/analytics/segment",
|
||||
startIcon: <DocumentTextSolid />,
|
||||
title: "S3",
|
||||
href: "/architectural-modules/file/s3",
|
||||
showLinkIcon: false
|
||||
},
|
||||
{
|
||||
startIcon: <SquaresPlusSolid />,
|
||||
title: "More Plugins",
|
||||
href: "/plugins",
|
||||
title: "More Integrations",
|
||||
href: "/integrations",
|
||||
showLinkIcon: false
|
||||
}
|
||||
]} /> */}
|
||||
]} />
|
||||
|
||||
---
|
||||
|
||||
## SDKs and Tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user