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