Enabling a Payment Provider

The enable payment-provider command configures your workspace to make use of one of the pre-built open source payment provider adapters in the saas-rs-sdk crate (see the src/payments/adapters folder).

Enable a Payment Provider after generating support for the Service Broker feature. This will enable you to synchronize your Service Plan records and their pricing with it.

Add Stripe support

To configure your workspace to support Stripe:

$ saas-rs enable payment-provider Stripe

You will notice the following files have been changed in your workspace:

Cargo.toml

A closer examination of Cargo.toml will show that the saas-rs-sdk crate has had an payments-stripe feature flag added:

[workspace.dependencies]
saas-rs-sdk = { version = "...", features = ["...", "payments-stripe"] }

Perform make and then stage and commit the generated files before you make any further changes:

$ make
cargo fmt --all
cargo build
Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.73s

$ git add -A
$ git commit -m "saas-rs enable payment-provider Stripe"

Show all Payment Providers

To see a list of all the currently supported identity providers, run the command with a help argument like this:

$ saas-rs enable payment-provider --help
Usage: saas-rs enable payment-provider <provider>

Arguments:
  <provider>  The payment provider [possible values: Stripe]

Options:
  -h, --help  Print help

©2025 SaaS RS | Website | GitHub | GitLab | Contact