https://github.com/muschellij2/checkout
R wrapper for Stripe Checkout with Shiny
https://github.com/muschellij2/checkout
Last synced: 20 days ago
JSON representation
R wrapper for Stripe Checkout with Shiny
- Host: GitHub
- URL: https://github.com/muschellij2/checkout
- Owner: muschellij2
- Created: 2017-05-23T21:15:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T21:22:11.000Z (almost 8 years ago)
- Last Synced: 2025-01-31T13:26:30.567Z (2 months ago)
- Language: R
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - muschellij2/checkout - R wrapper for Stripe Checkout with Shiny (R)
README
# checkout
[](https://travis-ci.org/muschellij2/checkout)
[](https://ci.appveyor.com/project/muschellij2/checkout)The goal of checkout is to have Stripe Checkout for Shiny.
## Installation
You can install checkout from github with:
``` r
# install.packages("devtools")
devtools::install_github("muschellij2/checkout")
```## Example
This is a basic example which shows you how to solve a common problem:
``` r
# Define the UI
ui <- bootstrapPage(
checkoutInput(id = "shinytoken", publickey = "pk_test_6pRNASCoBOKtIshFeQd4XMUh"),
# an element for unformatted text
verbatimTextOutput("results")
)# Define the server code
server <- function(input, output) {
output$results = renderPrint({
input$shinytoken
})
}# Return a Shiny app object
shinyApp(ui = ui, server = server)
```