Validate free connector program enrollment with backend before showing success/error UI notifications #22302
Labels
airbyte-cloud
area/frontend
Related to the Airbyte webapp
autoteam
team/compose
type/bug
Something isn't working
After a user goes through the Stripe checkout page, Stripe simultaneously redirects them to the
successUrl
we provide and sends a request to a webhook of ours. For a small number of users, this webhook is not successfully processed, preventing us from recognizing them as enrolled and billing accordingly; we should not show any confirmation UI until we have verified with the Airbyte cloud backend that the webhook has been processed correctly. The initial implementation didn't account for this, and triggered the confirmation UI as soon as the user navigated to thesuccessUrl
; this needs to be updated. Lots of context in this slack thread.So:
useFreeConnectorProgram()
with thefcpEnrollmentSuccess
query param, start polling the FCP program info endpointhasPaymentAccountSaved
istrue
, stop polling, hide enrollment banners, and show success UIOne weakness of this approach: it cannot detect errors in a scenario where users try to update the payment account of record for a workspace. We don't currently have any UI to manage payment accounts, but we'll need it: it's a table stakes feature for actually doing any billing via the saved payment accounts.
The text was updated successfully, but these errors were encountered: