stripeRShinyUI: stripeRShiny UI

Description Usage Arguments Value Examples

View source: R/shiny.R

Description

Shiny Module for use with stripeRShiny

Usage

1

Arguments

id

Shiny id

Value

A Shiny Stripe From

Examples

 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)

MarkEdmondson1234/stripeR documentation built on Nov. 6, 2019, 3:21 p.m.