View source: R/create_payment_module.R
create_payment_module | R Documentation |
Shiny module server for creating a one time payment
create_payment_module( input, output, session, amount, currency = "usd", send_receipt_email = TRUE, description = NULL, ui = NULL )
input |
the Shiny server input |
output |
the Shiny server output |
session |
the Shiny server session |
amount |
a positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency) |
currency |
the currency to use for the payment |
send_receipt_email |
boolean - whether or not to send an email receipt. Defaults
to |
description |
short payment description. Useful for identifying the payment. |
ui |
optional UI to place above the submit button. This is often used to include a disclaimer. |
a list with 1 reactiveVal - payment_response - returns the response to the payment attempt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.