AutumnA
Autumn3mo ago
5 replies
style

Hi I have weird issue, not sure if that'

Hi I have weird issue, not sure if that's because I'm on sandbox. I have to purchase subscription twice to make it attach and everyone trying my app has to do the same.

1st checkout:
await checkout({
            productId,
            dialog: CustomCheckoutDialog,
            entityId: String(projectId),
            entityData: { featureId: 'projects', projectId: String(projectId) },
            successUrl: `${process.env.NODE_ENV === 'production' ? 'https://waitset.com' : 'http://localhost:3000'}/project/${projectId}`,
            forceCheckout: true,
          })


paywall (after first checkout we are redirecting and we show that user has not paid - this will confuse users, that's why i need immediate fix)
 await checkout({
                    productId: selectedProductId,
                    dialog: CustomCheckoutDialog,
                    entityId: String(projectId),
                    entityData: {
                      featureId: 'projects',
                      projectId: String(projectId),
                    },
                    successUrl: `${process.env.NODE_ENV === 'production' ? 'https://waitset.com' : 'http://localhost:3000'}/project/${projectId}`,
                    forceCheckout: true,
                  })


Checkouts are looking exactly the same ;/ Could someone take a look at logs of my organization?
Was this page helpful?