get_stripe: Get relevant information about a Stripe customer from Stripe...

View source: R/get_stripe.R

get_stripeR Documentation

Get relevant information about a Stripe customer from Stripe and Polished

Description

This is a helper API wrapper for internal use in Polished Payments Shiny apps. It is not intended to be used outside of Shiny.

Usage

get_stripe(user_uid, app_uid = polished::.polished$app_uid)

Arguments

user_uid

the customer's 'polished' user uid

app_uid

the 'polished' app uid; defaults to the current app (e.g. polished::.polished$app_uid)

Value

a list with the following elements: - polished_customer_uid - stripe_customer_id - default_payment_method - trial_days_remaining - subscription: either NA if no subscription in Stripe, or a list of with the following elements retrieved from the Stripe API: - stripe_subscription_id - item_id - plan_id - nickname - amount - interval - trial_end - created_at


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