create_payment_module: Shiny module server for creating a one time payment

View source: R/create_payment_module.R

create_payment_moduleR Documentation

Shiny module server for creating a one time payment

Description

Shiny module server for creating a one time payment

Usage

create_payment_module(
  input,
  output,
  session,
  amount,
  currency = "usd",
  send_receipt_email = TRUE,
  description = NULL,
  ui = NULL
)

Arguments

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 TRUE.

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.

Value

a list with 1 reactiveVal - payment_response - returns the response to the payment attempt


Tychobra/polishedpayments documentation built on May 13, 2022, 7:15 p.m.