Skip to content
Payment providers

Payment providers

A payment provider is the service that takes the payments for your application, such as Stripe. A connection receives the webhooks of one account at the provider. A paid purchase creates a license under the policy that is mapped to the purchase.

Connection properties

PropertyDescription
NameThe name says which account the connection is for, such as Stripe live.
Signing secretThe secret that the provider signs each webhook with. Seatify refuses a webhook that this secret did not sign. A connection without a signing secret refuses every webhook. This property is optional.
Webhook URLThe address that the provider sends its webhooks to. Each connection has its own address, and the address never changes.
Customer matchingThe rule that finds the customer of a purchase. See Customer matching.
Refunds and disputesThe effect of a refund and of a dispute on the license. See Refunds and disputes.

Your account can have several connections. Test mode and live mode of Stripe have different signing secrets, so each mode needs its own connection.

Mappings

A mapping connects an ID at the provider to a policy. A purchase that has the ID creates a license under that policy.

MappingPurchaseLicenses
Payment linkA one-time purchase through the payment link.One license.
PriceA subscription to the price.The quantity rule decides.
ProductA subscription to any price of the product.The quantity rule decides.
  • A price mapping is read before a product mapping.
  • A one-time purchase can also name its policy in the checkout session. That value is read before the payment link mapping. See Connect Stripe.
  • A purchase that no mapping matches creates no license.
  • A mapping cannot be changed. Delete the mapping and create a new one.

Quantity rules

A subscription has a quantity. The quantity rule of the mapping decides what the quantity means.

RuleBehavior
One licenseThe subscription gets one license. The quantity is not read.
One license for each unitEach unit of the quantity gets its own license. A quantity over 100 creates no license.
One license, quantity as seatsThe subscription gets one license, and the quantity is the seat limit of the license. The policy must bind customers.
One license, quantity as devicesThe subscription gets one license, and the quantity is the device limit of the license. The policy must bind devices.

One-time purchases

A paid checkout creates one license. The policy decides the expiry of the license, as it does for a license that you create in the dashboard.

Seatify never creates a second license for the same checkout, even when the provider sends the webhook again.

Subscriptions

The first paid invoice of a subscription creates the license. The license expires at the end of the period that the invoice paid. Each later paid invoice moves the expiry date to the end of the new period.

  • A subscription that is no longer paid is not renewed, so its license expires. The grace period of the policy gives time for a late payment.
  • A change of the quantity applies at the next paid invoice.
  • With One license for each unit, a higher quantity adds licenses. The licenses above a lower quantity are not renewed, so they expire.
  • With One license, quantity as seats or One license, quantity as devices, a lower quantity lowers the limit. The seats and the devices that the license already has are kept. A new seat or a new device is refused until the license is under its limit.
  • If you remove the expiry date of a license, a renewal does not set it again.

License key emails

The buyer gets the license key by email when the policy has Email the license key turned on and the customer has an email address. A subscription with several licenses sends one email with every key. A renewal sends no email.

Customer matching

The rule of the connection finds the customer who owns the license. Seatify creates a customer when the rule finds none.

RuleExisting customerReference of a new customer
Email addressThe one customer that has the email address of the buyer. If two customers have the same address, no customer matches.The customer ID at the provider. For a guest checkout, the checkout session ID.
Customer ID at the providerThe customer whose reference is the customer ID at the provider.The customer ID at the provider. For a guest checkout, the checkout session ID.
Client reference IDThe customer whose reference is the client_reference_id of the checkout session.The client_reference_id.
Always a new customerNone.The checkout session ID. For a subscription, the subscription ID.
  • A new customer gets the email address and the name of the buyer.
  • An invoice of a subscription has no client_reference_id. With the Client reference ID rule, a subscription uses the customer ID at the provider.
  • Use the Client reference ID rule when your application claims with your own user ID. See References.

Refunds and disputes

Each connection has two settings.

SettingBehavior
Suspend the license after a full refundA full refund suspends the license of the purchase. A partial refund never changes the license.
Suspend the license after a disputeA new dispute suspends the license of the purchase. A dispute that you win does not reinstate the license. Reinstate it in the dashboard.

These settings apply only to the license of a one-time purchase. A refund of a subscription payment does not change the license. Cancel the subscription at the provider, and the license expires at the end of the paid period.

Events

The dashboard lists the webhooks that a connection handled. Each event has a status. An event that is Ignored or Failed also has a reason.

StatusMeaning
ProcessedThe license was created, renewed or suspended.
IgnoredThe event needed no action.
FailedThe event could not be completed.
ReasonStatus
The purchase was not paid.Ignored
No policy is mapped to the purchase.Ignored
The connection is set to keep the license after a refund or a dispute.Ignored
The refund is partial.Ignored
No one-time purchase has the refunded or disputed payment.Ignored
The license of the purchase was deleted.Ignored
A subscription with One license for each unit has a quantity over 100.Failed
The mapping uses the seats rule, but its policy does not bind customers.Failed
The mapping uses the devices rule, but its policy does not bind devices.Failed
Your plan allows no more licenses.Failed
An unexpected error stopped the event. The provider sends the event again.Failed

An ignored or failed event is handled again when the provider sends it again. Fix the cause, such as a missing mapping, and then resend the event at the provider. A processed event that arrives again is not handled a second time.

The events hold no payment details and no address of the buyer.

Disabling and deletion

A disabled connection accepts every webhook. No license is created, renewed or suspended, and no event is recorded. The mappings and the settings are kept.

Deletion is permanent. It removes the mappings and the events of the connection, and the webhook URL stops working. The licenses that the connection created are kept.

A deleted mapping creates no license for a later purchase. The licenses that exist are kept, and the license of a subscription is still renewed.

Related guides