Description Usage Arguments Value Examples
Shiny Module for use with stripeRShiny
1 | stripeRShinyUI(id)
|
id |
Shiny id |
A Shiny Stripe From
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run:
## server.R
library(shiny)
library(stripeR)
function(input, output, session){
callModule(stripeRShiny, "stripe1",
amount=2000,
plan="example",
formAmount=reactive("$20.00"),
formText=reactive("Please pay $20.00"))
}
## ui.R
library(shiny)
library(stripeR)
fluidPage(
titlePanel("StripeR Demo"),
# A Stripe Form
sidebarLayout(
sidebarPanel(
stripeRShinyUI("stripe1")
),
mainPanel(...)))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.