Medusa PayPal Plugin with Authorize Intent (Fork of @alphabite/medusa-paypal)
The Alphabite PayPal Plugin integrates PayPal payment processing into your Medusa store. It handles various payment flows, including capturing payments, managing refunds, and ensuring robust error handling.
For complete documentation, visit our PayPal Plugin Documentation.
This guide walks you through installing and configuring the Alphabite PayPal Plugin in your Medusa backend.
Install the package via npm:
npm install @alphabite/medusa-paypal
Add the plugin to your or :
{plugins: [{resolve: "@alphabite/medusa-paypal",options: {clientId: process.env.PAYPAL_CLIENT_ID,clientSecret: process.env.PAYPAL_CLIENT_SECRET,isSandbox: process.env.PAYPAL_IS_SANDBOX === "true",webhookId: process.env.PAYPAL_WEBHOOK_ID,includeShippingData: false,includeCustomerData: false,},},],};
The following options can be passed to the PayPal plugin in your or file:
| Option | Type | Default | Description |
|---|---|---|---|
| Required. Your PayPal API client ID. | |||
| Required. Your PayPal API client secret. | |||
| Whether to use the PayPal Sandbox environment for testing. | |||
| Optional. Your PayPal webhook ID. If provided, enables confirmation of payment captures. | |||
| Optional. If , shipping data from the storefront order will be added to the PayPal order. | |||
| Optional. If , customer data from the storefront order will be added to the PayPal order. |
π Configuration Guide π Join our Discord Community for faster support