Description Usage Arguments Examples
View source: R/polished_payments_config.R
configure R options for Polished Payments
1 2 3 4 5 6 7 | polished_payments_config(
stripe_secret_key,
stripe_public_key,
stripe_prices,
trial_period_days = 0,
free_roles = character(0)
)
|
stripe_secret_key |
the Stripe secret key |
stripe_public_key |
the Stripe publishable key |
stripe_prices |
an unnamed character vector of Stripe price ids for your subscription. e.g. monthly and yearly pricing options. A Stripe price id looks like this "price_64t6gq76vr78sdhf". |
trial_period_days |
the number of days to offer for a free trial period. All pricing options will use this free trial period. It overrides any free trial period set on your Stripe dashboard. |
free_roles |
Polished user roles that can bypass having to set up a aubscription and get free access to your Shiny app. This is often used to give certain users (e.g. your beta testers) free access to your app. Go to https://dashboard.polished.tech to create a user role and add that role to specific users. |
1 2 3 4 5 6 7 | polished_payments_config(
stripe_secret_key = "<your Stripe secret API key>",
stripe_public_key = "<your Stripe publishable key>",
stripe_prices = c("price_jkashdkfjh", "price_jakhkljgakwf"),
trial_period_days = 30,
free_roles = "free_user"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.