credit_card_payment_module: Server logic for Stripe Credit Card input

View source: R/credit_card_module.R

credit_card_payment_moduleR Documentation

Server logic for Stripe Credit Card input

Description

Server logic for Stripe Credit Card input

Usage

credit_card_payment_module(
  input,
  output,
  session,
  trigger = function() NULL,
  amount,
  currency = "usd",
  stripe_secret_key = .pp$keys$secret
)

Arguments

input

the Shiny server input

output

the Shiny server output

session

the Shiny server session

trigger

the reactive trigger to submit the payment to Stripe

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. Defaults to "usd" (United States Dollar).


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