Przejdź do głównej zawartości

Take payments with PayPal

This guide explains how to let users pay for your Casdoor products with PayPal.


Learning outcomes​

  • Create a PayPal app.
  • Add PayPal as a payment provider and add it to a product.

What you need​


Create a PayPal app​

  1. Sign in to the PayPal developer dashboard and click Create App under Apps & Credentials.

    App creation in PayPal

  2. Copy the Client ID and the Secret of the app.

    Client ID and secret of the app

Add the provider in Casdoor​

  1. In the Casdoor admin console, go to Identity > Providers and add a provider.
  2. Set Category to Payment and Type to PayPal.
  3. Enter the Client ID and the secret as the Client secret.
  4. Save the provider.

Add the provider to a product​

Add the provider to the Payment providers of the product and save it.

PayPal in the payment providers of a product

notatka

These steps use the PayPal sandbox. For production, create the app in Live mode and set runmode = prod in conf/app.conf of Casdoor.

See also​