stripe_checkout_session | R Documentation |
The stripe_checkout_session
represents your customer's session as they pay for
one-time purchases or subscriptions through Checkout or Payment Links. We recommend
creating a new Session each time your customer attempts to pay.
An R6 Class object
create
: Creates a checkout_session on Stripe.
retrieve
: Retrieves checkout_session information from Stripe based on the
id
passed to the method.
new()
stripe_checkout_session$new(..., metadata = list())
create()
stripe_checkout_session$create( client_reference_id = NULL, customer = NULL, customer_email = NULL, currency = NULL, price = NULL, quantity = NULL, metadata = list(), mode = NULL, success_url = NULL )
retrieve()
stripe_checkout_session$retrieve(checkout_session_id)
clone()
The objects of this class are cloneable with this method.
stripe_checkout_session$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.