Tipping
The tipping module’s root lookups.
Root fields
Section titled “Root fields”| Field | Type | Description |
|---|---|---|
tipping |
IAudienceTipping! |
The instance’s IAudienceTipping mixin. Left out of the schema where its module isn’t installed. |
Mutations
Section titled “Mutations”| Operation | Returns | Description |
|---|---|---|
confirmTipinput: TipConfirmInput! |
TipConfirmPayload |
Checks a tip payment with its provider after the app finishes paying, before the webhook arrives. requires tipping:write:self |
payTipinput: TipPayInput! |
TipPayPayload |
Pays a tip to a performer who takes Square with a payment token from Square’s In-App Payments SDK (a card, Apple Pay or Google Pay), after startTip. requires tipping:write:self |
startTipinput: TipStartInput! |
TipStartPayload |
Starts tipping a performer in the app, through their own Stripe or Square account (the IN_APP option of their tipping mixin). Stripe: finish with Stripe’s payment sheet (paymentIntentClientSecret, on their account stripeAccountId, with publishableKey), then call confirmTip. Square: make a payment token with Square’s In-App Payments SDK (squareApplicationId, squareLocationId), then call payTip with it. Asking again for the same amount soon after returns the same tip. A tip to a Soapbox publication (publicationId) can read it without ads, so it is paid on the web instead: open checkoutUrl in the browser (US storefronts only), then call confirmTip when the reader comes back. requires tipping:write:self |
Objects
Section titled “Objects”AudienceTippingView
Section titled “AudienceTippingView”Object · implements IAudienceTipping
The local Tipping implementation of the tipping module’s root lookups.
| Field | Type | Description |
|---|---|---|
providersafter: Stringbefore: Stringfirst: Intlast: Int |
TippingProviderConnection! |
The ways performers can be tipped, and how each works. |
TipOption
Section titled “TipOption”Object
One way to tip a performer.
| Field | Type | Description |
|---|---|---|
handle |
String |
Links: their handle, e.g. their $cashtag without the $. |
isInApp |
Boolean! |
Paid in the app, rather than a link out. |
name |
String! |
The provider’s name, for the button. |
paymentProvider |
PaymentProvider |
In the app: who takes the payment, so the app knows which SDK to use (Square’s In-App Payments or Stripe’s payment sheet). |
provider |
TipProvider! |
The tipping provider. |
url |
String |
Links: where to send the fan. |
TippingProvider
Section titled “TippingProvider”Object · implements IProvider
A way to tip performers (a Tipping::Provider), and how it works.
| Field | Type | Description |
|---|---|---|
inApp |
Boolean! |
Whether fans pay in the app. |
key |
String! |
Its key, e.g. karafun. |
link |
Boolean! |
Whether fans tip through a link to the performer’s handle elsewhere. |
name |
String! |
Its name, e.g. KaraFun. |
TippingProviderConnection
Section titled “TippingProviderConnection”Object
The connection type for TippingProvider.
| Field | Type | Description |
|---|---|---|
edges |
[TippingProviderEdge] |
A list of edges. |
nodes |
[TippingProvider] |
A list of nodes. |
pageInfo |
PageInfo! |
Information to aid in pagination. |
TippingProviderEdge
Section titled “TippingProviderEdge”Object
An edge in a connection.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
A cursor for use in pagination. |
node |
TippingProvider |
The item at the end of the edge. |
TippingView
Section titled “TippingView”Object · implements ITipping
The local Tipping implementation: the person’s Tipping providers (Tipping::Provider).
| Field | Type | Description |
|---|---|---|
currency |
String! |
Three-letter currency code of in-app tips. |
maximumCents |
Int! |
The most one in-app tip can be, in cents. |
minimumCents |
Int! |
The least one in-app tip can be, in cents. |
options |
[TipOption!]! |
Every way to tip them right now, links first. Empty when they haven’t set any up. |
paymentAccountenvironment: PaymentEnvironment |
PaymentAccount |
The Stripe or Square account they take tips through in the app. Admins and their listing managers only. requires tipping:read:mine |
presetCents |
[Int!]! |
Suggested in-app tip amounts, in cents. |
quoteamountCents: Int! |
TipQuote |
What a fan pays to tip amountCents in the app, card fee included. Null when they don’t take tips in the app or the amount is out of range. |
tipsafter: Stringbefore: Stringfirst: Intlast: Int |
TipConnection |
Their in-app tips, newest first. Admins and their listing managers only; null for everyone else. requires tipping:read:mine |
TipQuote
Section titled “TipQuote”Object · implements ICharge
What a fan pays for an in-app tip, e.g. “$10 + $0.61 fees”.
| Field | Type | Description |
|---|---|---|
amount |
Money! |
What the performer gets. |
fee |
Money! |
The card fee the fan covers. |
total |
Money! |
What the fan pays. |
Mutation payloads
Section titled “Mutation payloads”TipConfirmPayload
Section titled “TipConfirmPayload”Object
Autogenerated return type of TipConfirm.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
tip |
Tip! |
The tip, after checking. |
TipPayPayload
Section titled “TipPayPayload”Object
Autogenerated return type of TipPay.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
tip |
Tip! |
The tip, paid when Square took the payment. |
TipStartPayload
Section titled “TipStartPayload”Object
Autogenerated return type of TipStart.
| Field | Type | Description |
|---|---|---|
checkoutUrl |
String |
A publication tip: the web checkout to open in the reader’s browser (Tipping::WebCheckout), good for two hours. Null for other tips, and when the publisher’s account isn’t Stripe. |
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
paymentIntentClientSecret |
String |
Stripe: for the payment sheet. Null once it’s paid, and for a publication tip (use checkoutUrl). |
provider |
PaymentProvider! |
Who takes the payment. |
publishableKey |
String |
Stripe: the audience’s publishable key. |
squareApplicationId |
String |
Square: the audience’s application ID. |
squareLocationId |
String |
Square: the performer’s location that gets paid. |
stripeAccountId |
String |
Stripe: the performer’s account, for the sheet. |
tip |
Tip! |
The tip, pending until the payment succeeds. |
Inputs
Section titled “Inputs”TipConfirmInput
Section titled “TipConfirmInput”Input
Autogenerated input type of TipConfirm
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
tipId |
ID! |
The tip identifier. |
TipPayInput
Section titled “TipPayInput”Input
Autogenerated input type of TipPay
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
sourceId |
String! |
The payment token (nonce) Square’s SDK made. |
tipId |
ID! |
The tip identifier. |
verificationToken |
String |
From Square’s buyer verification, when the SDK asked for it. |
TipStartInput
Section titled “TipStartInput”Input
Autogenerated input type of TipStart
| Field | Type | Description |
|---|---|---|
amountCents |
Int! |
What the performer should get, in cents. The fan also pays the card fee (tipping.quote). |
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
eventId |
ID |
The show the tip is for, if any. |
note |
String |
A short note to the performer. |
personId |
ID |
The performer. Required unless publicationId is given. |
publicationId |
ID |
A Soapbox publication to tip (its person is tipped). A tip of at least its adFreeTipCents reads it without ads for adFreeDays. |
showFirstName |
Boolean |
Show the performer their first name (tipperFirstName). Otherwise they see the tip as Anonymous. |
Interfaces
Section titled “Interfaces”IAudienceTipping
Section titled “IAudienceTipping”Interface · implemented by AudienceTippingView · mixin edge tipping on Audience
The tipping module’s root lookups.
| Field | Type | Description |
|---|---|---|
providersafter: Stringbefore: Stringfirst: Intlast: Int |
TippingProviderConnection! |
The ways performers can be tipped, and how each works. |
ITipping
Section titled “ITipping”Interface · implemented by TippingView · mixin edge tipping on Person
How fans can tip a performer: links to Cash App or Venmo, or paying in the app.
| Field | Type | Description |
|---|---|---|
currency |
String! |
Three-letter currency code of in-app tips. |
maximumCents |
Int! |
The most one in-app tip can be, in cents. |
minimumCents |
Int! |
The least one in-app tip can be, in cents. |
options |
[TipOption!]! |
Every way to tip them right now, links first. Empty when they haven’t set any up. |
paymentAccountenvironment: PaymentEnvironment |
PaymentAccount |
The Stripe or Square account they take tips through in the app. Admins and their listing managers only. requires tipping:read:mine |
presetCents |
[Int!]! |
Suggested in-app tip amounts, in cents. |
quoteamountCents: Int! |
TipQuote |
What a fan pays to tip amountCents in the app, card fee included. Null when they don’t take tips in the app or the amount is out of range. |
tipsafter: Stringbefore: Stringfirst: Intlast: Int |
TipConnection |
Their in-app tips, newest first. Admins and their listing managers only; null for everyone else. requires tipping:read:mine |