6.0.5 • Published 11 months ago

medusa-payment-paypal v6.0.5

Weekly downloads
61
License
MIT
Repository
github
Last release
11 months ago

PayPal

Receive payments on your Medusa commerce application using PayPal.

PayPal Plugin Documentation | Medusa Website | Medusa Repository

Features

  • Authorize payments on orders from any sales channel.
  • Capture payments from the admin dashboard.
  • View payment analytics through PayPal's dashboard.
  • Ready-integration with Medusa's Next.js starter storefront.
  • Support for Webhooks.

Prerequisites


How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-payment-paypal

2. Set the following environment variables in .env:

PAYPAL_SANDBOX=true
PAYPAL_CLIENT_ID=<CLIENT_ID>
PAYPAL_CLIENT_SECRET=<CLIENT_SECRET>
PAYPAL_AUTH_WEBHOOK_ID=<WEBHOOK_ID>

3. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  {
    resolve: `medusa-payment-paypal`,
    options: {
      sandbox: process.env.PAYPAL_SANDBOX,
      client_id: process.env.PAYPAL_CLIENT_ID,
      client_secret: process.env.PAYPAL_CLIENT_SECRET,
      auth_webhook_id: process.env.PAYPAL_AUTH_WEBHOOK_ID,
    },
  },
]

Test the Plugin

1. Run the following command in the directory of the Medusa backend to run the backend:

npm run start

2. Enable PayPal in a region in the admin. You can refer to this User Guide to learn how to do that. Alternatively, you can use the Admin APIs.

3. Place an order using a storefront or the Store APIs. You should be able to use Stripe as a payment method.


Additional Resources

6.0.5

11 months ago

6.0.4

12 months ago

6.0.3

1 year ago

5.0.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.2

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

1.2.8

2 years ago

1.2.7

3 years ago

2.0.0

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.3.0-rc.2

2 years ago

1.3.0-rc.0

2 years ago

1.3.0-rc.1

2 years ago

2.0.0-rc.3

2 years ago

2.0.0-rc.4

2 years ago

2.0.0-rc.5

2 years ago

2.0.0-rc.6

2 years ago

2.0.0-rc.7

2 years ago

2.0.0-rc.8

2 years ago

1.2.6

3 years ago

1.2.6-alpha.1

3 years ago

1.2.7-alpha.0

3 years ago

1.2.5-next.0

3 years ago

1.2.5

3 years ago

1.2.5-nxt.0

3 years ago

1.2.6-alpha.0

3 years ago

1.2.6-alp.0

3 years ago

1.2.5-test.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.1-next.101

3 years ago

1.2.1-next.100

3 years ago

1.2.1-next.99

3 years ago

1.2.1-next.108

3 years ago

2.0.0-next.0

3 years ago

1.2.1-next.44

3 years ago

1.2.1-next.41

3 years ago

1.2.1-next.24

3 years ago

1.2.1-nxt.129

3 years ago

1.2.1-next.27

3 years ago

1.2.1-next.26

3 years ago

1.2.1-next.35

3 years ago

1.2.1-nxt.130

3 years ago

1.2.0

3 years ago

1.2.1-next.14

3 years ago

1.0.42-next.0

3 years ago

1.0.41

3 years ago

1.1.2-dev.56

3 years ago

1.1.2-dev.53

3 years ago

1.0.41-alpha.63

3 years ago

1.1.2-dev.47

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.39-alpha.4

3 years ago

1.0.37-next.14

4 years ago

1.0.37

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.39

3 years ago

1.0.38

4 years ago

1.0.40

3 years ago

1.0.39-adminc.21

3 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.34

4 years ago

1.0.27-next.46

4 years ago

1.0.29-next.0

4 years ago

1.0.30

4 years ago

1.0.27

4 years ago

1.0.26-meilis.0

4 years ago

1.0.25-meili.42

4 years ago

1.0.27-next.19

4 years ago

1.0.25-meilis.37

4 years ago

1.0.25-meili.41

4 years ago

1.0.25-meili.40

4 years ago

1.0.25-meili.39

4 years ago

1.0.25-alpha.37

4 years ago

1.0.25-meili.37

4 years ago

1.0.25-next.40

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.25-next.39

4 years ago

1.0.25-next.36

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.19-alpha.18

4 years ago

1.0.19-alpha.17

4 years ago

1.0.19-next.16

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.19-alpha.9

4 years ago

1.0.19-alpha.6

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.19-next.10

4 years ago

1.0.19-next.7

4 years ago

1.0.19-alpha.4

4 years ago

1.0.18

4 years ago

1.0.12-next.9

4 years ago

1.0.15-next.0

4 years ago

1.0.12-alpha.5

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10-next.10

4 years ago

1.0.10-next.9

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.8-next.5

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4-next.23

4 years ago

1.0.4-alpha.16

4 years ago

1.0.4-next.8

4 years ago

1.0.3-next.14

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.3-next.3

4 years ago

1.0.1

4 years ago