Commerce Objects in Sandbox/Dev Accounts

I’m looking for best-practice guidance on testing changes for a payments auditing app.

I have a custom app that helps us audit payments and validate that our data is correct. The app is live and working, but I want to make improvements. Ideally, I’d like to test changes in a sandbox or developer account before deploying to production. However, in both environments I’m not able to work with the Commerce objects I need for end-to-end testing.

What’s the recommended approach for safely testing updates before publishing live?

  • Is there a supported way to get a true staging environment that includes Commerce objects?
  • Or is the standard practice basically: develop locally → publish → verify → rollback/re-deploy as needed?

Any guidance or patterns you’ve seen work well would be hugely appreciated. Thanks!

Hey @kotakeio - thanks for posting in the Community!
I’d like to tag in some Community experts to see if they have any insight on best practices here! @Anton, @Stephanie-OG, and @Gonzalo - any thoughts for @kotakeio?

Shane, Senior Community Moderator

Hi @kotakeio

After reviewing the current capabilities, it appears that a true staging environment for Commerce-dependent features is not currently supported. Specifically, sandbox and developer test accounts do not include Commerce objects such as invoices, payments, subscriptions, and carts.

Additionally, HubSpot Payments cannot be configured in sandbox accounts. Application setup is rejected, and payment links created in these environments cannot process actual transactions.

To work around these limitations, you can consider the following approach:

  • Local Testing: Test locally using sanitized copies of real production data.

  • Read-Only Access: Utilize a read-only private app when access to live HubSpot data is required.

  • Dry-Run Mode: Execute changes in dry-run mode first to validate the expected results before applying any changes to the production environment.

    I hope this helps you out. Please mark it as Solution Accepted and Like to help another Community member.

    Thanks!