Skip to content

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.

Field Type Description
payments IAudiencePayments The instance’s IAudiencePayments mixin, when available to the viewer. requires payments:read:*
Operation Returns Description
connectVenueSquare staffql only
input: 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 only
input: 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 only
input: 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 only
input: VenueSquareLocationSetInput!
VenueSquareLocationSetPayload Picks which of the venue’s Square locations its cover is paid to. requires payments:write:mine

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).

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.

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.

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.

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.

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.

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.

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.

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.

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).

Enum

Where a payment is taken: production, or Square’s sandbox, which staging builds pay in.

  • PRODUCTION Real payments.
  • SANDBOX Square’s sandbox: test cards, no money moves.