Closed ejazmusavi closed 4 years ago
I can’t help unless you have an example.
From: ejazmusavi notifications@github.com Sent: Sunday, October 27, 2019 1:18 PM To: MarkEdmondson1234/stripeR Cc: Subscribed Subject: [MarkEdmondson1234/stripeR] could not find function "stripeFormOutput" (#11)
Please help me to resolve this. Warning: Error in stripeFormOutput: could not find function "stripeFormOutput" 61: dots_list 60: tags$form 57: sidebarPanel
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/MarkEdmondson1234/stripeR/issues/11?email_source=notifications&email_token=AAYCPLFRNCXTGFGKGOMCSFTQQWBKHA5CNFSM4JFROFF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUTEBOQ, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYCPLCHVRKJUXJM3XZEXNTQQWBKHANCNFSM4JFROFFQ.
Thank you for your response. here is the ui.R file content
library(shiny) library(stripeR)
fluidPage(
titlePanel("StripeR Demo"),
sidebarLayout( sidebarPanel( stripeFormOutput("stripeForm") ),
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot")
)
) )
and server.R
library(shiny) library(stripeR)
function(input, output, session){
status <- stripeShinyInit()
output$stripeForm <- renderStripeForm(status, amount="GBP20.00", plan="Agency - GBP20.00 per month")
observeStripeCharge(status, input, amount = 2000, currency = "gbp", plan="agency")
}
and put the secret keys in the environment file in the root.
the error is Warning: Error in stripeFormOutput: could not find function "stripeFormOutput" 61: dots_list 60: tags$form 57: sidebarPanel
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sun, Oct 27, 2019 at 6:26 PM Mark notifications@github.com wrote:
I can’t help unless you have an example.
From: ejazmusavi notifications@github.com Sent: Sunday, October 27, 2019 1:18 PM To: MarkEdmondson1234/stripeR Cc: Subscribed Subject: [MarkEdmondson1234/stripeR] could not find function "stripeFormOutput" (#11)
Please help me to resolve this. Warning: Error in stripeFormOutput: could not find function "stripeFormOutput" 61: dots_list 60: tags$form 57: sidebarPanel
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub< https://github.com/MarkEdmondson1234/stripeR/issues/11?email_source=notifications&email_token=AAYCPLFRNCXTGFGKGOMCSFTQQWBKHA5CNFSM4JFROFF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUTEBOQ>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AAYCPLCHVRKJUXJM3XZEXNTQQWBKHANCNFSM4JFROFFQ
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarkEdmondson1234/stripeR/issues/11?email_source=notifications&email_token=AFRDITXEZGE5VY5LOEX5DD3QQWJHHA5CNFSM4JFROFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECK6KYQ#issuecomment-546694498, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRDITU2CBVOG4MGNQWSCATQQWJHHANCNFSM4JFROFFQ .
The documents needed updating, the correct way is via below:
## 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(
)
)
)
Please help me to resolve this. I am using Shiny sample. this error occurs when i run the application. Warning: Error in stripeFormOutput: could not find function "stripeFormOutput" 61: dots_list 60: tags$form 57: sidebarPanel