View source: R/polished_payments_config.R
polished_payments_config | R Documentation |
configure Polished Payments
polished_payments_config( stripe_secret_key, stripe_public_key, subscription_prices = NULL, trial_period_days = 0, is_subscription_required = TRUE )
stripe_secret_key |
the Stripe secret key |
stripe_public_key |
the Stripe publishable key |
subscription_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". Set to |
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. |
is_subscription_required |
|
## Not run: polished_payments_config( stripe_secret_key = "<your Stripe secret API key>", stripe_public_key = "<your Stripe publishable key>", subscription_prices = c("price_jkashdkfjh", "price_jakhkljgakwf"), trial_period_days = 30 ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.