Payments
Which payment keys an audience’s cover charges go through, and the URLs to give Stripe and Square. Secrets are stored encrypted and never returned.
Root fields
Section titled “Root fields”| Field | Type | Description |
|---|---|---|
payments |
IAudiencePayments |
The instance’s IAudiencePayments mixin, when available to the viewer. requires payments:read:* |
Mutations
Section titled “Mutations”| Operation | Returns | Description |
|---|---|---|
connectVenueSquare staffql onlyinput: VenueSquareConnectInput! |
VenueSquareConnectPayload |
Starts connecting a venue’s Square account so it can take cover in the apps. Send its manager to authorizeUrl; Square brings them back to returnTo with square=connected, pick_location (pick one with setVenueSquareLocation), declined or error. requires payments:write:mine |
connectVenueStripe staffql onlyinput: VenueStripeConnectInput! |
VenueStripeConnectPayload |
Starts connecting a venue’s Stripe account so it can take cover in the apps. Send its manager to onboardingUrl; Stripe brings them back to returnTo with stripe=connected (or pending, or error). requires payments:write:mine |
disconnectVenuePayments staffql onlyinput: VenuePaymentsDisconnectInput! |
VenuePaymentsDisconnectPayload |
Stops a venue taking cover through its Stripe or Square account. The account stays for the covers already paid through it, and connecting one again starts over. requires payments:write:mine |
setVenueSquareLocation staffql onlyinput: VenueSquareLocationSetInput! |
VenueSquareLocationSetPayload |
Picks which of the venue’s Square locations its cover is paid to. requires payments:write:mine |
Objects
Section titled “Objects”AudiencePayments
Section titled “AudiencePayments”Object · implements IAudiencePayments
The local Payments implementation of an audience’s keys.
| Field | Type | Description |
|---|---|---|
squareApplicationId |
String |
Its production Square application. |
squareConfigured |
Boolean! |
Whether its production Square application ID and secret are set. |
squareRedirectUrl |
String! |
The OAuth redirect URL to set on both Square applications. |
squareSandboxApplicationId |
String |
Sandbox Square application used by staging builds. |
squareSandboxConfigured |
Boolean! |
Whether its sandbox Square ID and secret are set. |
squareSandboxWebhookLastAt |
ISO8601DateTime |
When the sandbox application last sent a webhook. |
squareSandboxWebhookLastOk |
Boolean |
Whether its signature checked out. |
squareSandboxWebhookSet |
Boolean! |
Whether its sandbox Square signature key is set. |
squareSandboxWebhookUrl |
String! |
The sandbox application’s webhook URL. |
squareWebhookLastAt |
ISO8601DateTime |
When the production application last sent a webhook (Send test event sends one). |
squareWebhookLastOk |
Boolean |
Whether its signature checked out with the stored key. |
squareWebhookSet |
Boolean! |
Whether its production Square signature key is set. |
squareWebhookUrl |
String! |
The URL to subscribe the production application to Square webhooks with (payment.updated, refund.updated, dispute.created, oauth.authorization.revoked). |
stripeConfigured |
Boolean! |
Whether its Stripe secret and publishable keys are set. |
stripePublishableKey |
String |
Public Stripe key used by payment clients. |
stripeWebhookSet |
Boolean! |
Whether its Stripe webhook secret is set. |
stripeWebhookUrl |
String! |
The URL of its Stripe Connect webhook endpoint (account.updated, payment_intent.*, charge.refunded, charge.dispute.created). |
Mutation payloads
Section titled “Mutation payloads”VenuePaymentsDisconnectPayload
Section titled “VenuePaymentsDisconnectPayload”Object · staffql only
Autogenerated return type of VenuePaymentsDisconnect.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
venue staffql only |
Venue! |
The venue, after the change. |
VenueSquareConnectPayload
Section titled “VenueSquareConnectPayload”Object · staffql only
Autogenerated return type of VenueSquareConnect.
| Field | Type | Description |
|---|---|---|
authorizeUrl staffql only |
String! |
Square’s page for signing in and allowing payments. |
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
VenueSquareLocationSetPayload
Section titled “VenueSquareLocationSetPayload”Object · staffql only
Autogenerated return type of VenueSquareLocationSet.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
venue staffql only |
Venue! |
The venue associated with this record. |
VenueStripeConnectPayload
Section titled “VenueStripeConnectPayload”Object · staffql only
Autogenerated return type of VenueStripeConnect.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
onboardingUrl staffql only |
String! |
Stripe’s page for setting up or signing in. |
Inputs
Section titled “Inputs”VenuePaymentsDisconnectInput
Section titled “VenuePaymentsDisconnectInput”Input · staffql only
Autogenerated input type of VenuePaymentsDisconnect
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
environment staffql only |
PaymentEnvironment |
Which of its accounts. |
venueId staffql only |
ID! |
The venue identifier. |
VenueSquareConnectInput
Section titled “VenueSquareConnectInput”Input · staffql only
Autogenerated input type of VenueSquareConnect
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
environment staffql only |
PaymentEnvironment |
SANDBOX connects a Square sandbox test account, which staging builds pay. |
returnTo staffql only |
String! |
The console page to come back to. |
venueId staffql only |
ID! |
The venue identifier. |
VenueSquareLocationSetInput
Section titled “VenueSquareLocationSetInput”Input · staffql only
Autogenerated input type of VenueSquareLocationSet
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
environment staffql only |
PaymentEnvironment |
Which of its Square accounts. |
locationId staffql only |
ID! |
The Square location identifier. |
venueId staffql only |
ID! |
The venue identifier. |
VenueStripeConnectInput
Section titled “VenueStripeConnectInput”Input · staffql only
Autogenerated input type of VenueStripeConnect
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
returnTo staffql only |
String! |
The console page to come back to. |
venueId staffql only |
ID! |
The venue identifier. |
Interfaces
Section titled “Interfaces”IAudiencePayments
Section titled “IAudiencePayments”Interface · implemented by AudiencePayments · mixin edge payments on Audience
Which payment keys an audience’s cover charges go through, and the URLs to give Stripe and Square. Secrets are stored encrypted and never returned.
| Field | Type | Description |
|---|---|---|
squareApplicationId |
String |
Its production Square application. |
squareConfigured |
Boolean! |
Whether its production Square application ID and secret are set. |
squareRedirectUrl |
String! |
The OAuth redirect URL to set on both Square applications. |
squareSandboxApplicationId |
String |
Sandbox Square application used by staging builds. |
squareSandboxConfigured |
Boolean! |
Whether its sandbox Square ID and secret are set. |
squareSandboxWebhookLastAt |
ISO8601DateTime |
When the sandbox application last sent a webhook. |
squareSandboxWebhookLastOk |
Boolean |
Whether its signature checked out. |
squareSandboxWebhookSet |
Boolean! |
Whether its sandbox Square signature key is set. |
squareSandboxWebhookUrl |
String! |
The sandbox application’s webhook URL. |
squareWebhookLastAt |
ISO8601DateTime |
When the production application last sent a webhook (Send test event sends one). |
squareWebhookLastOk |
Boolean |
Whether its signature checked out with the stored key. |
squareWebhookSet |
Boolean! |
Whether its production Square signature key is set. |
squareWebhookUrl |
String! |
The URL to subscribe the production application to Square webhooks with (payment.updated, refund.updated, dispute.created, oauth.authorization.revoked). |
stripeConfigured |
Boolean! |
Whether its Stripe secret and publishable keys are set. |
stripePublishableKey |
String |
Public Stripe key used by payment clients. |
stripeWebhookSet |
Boolean! |
Whether its Stripe webhook secret is set. |
stripeWebhookUrl |
String! |
The URL of its Stripe Connect webhook endpoint (account.updated, payment_intent.*, charge.refunded, charge.dispute.created). |
PaymentEnvironment
Section titled “PaymentEnvironment”Enum
Where a payment is taken: production, or Square’s sandbox, which staging builds pay in.
PRODUCTIONReal payments.SANDBOXSquare’s sandbox: test cards, no money moves.