Skip to main content

I have a multi-step zap that is triggered when a checkout session is completed in stripe.  I use this trigger to create a new user in a mobile app that I’ve built.  

I have no issues finding the checkout and associated customer record in stripe.  I can even manipulate elements the customer record (ie, parsing first name last name into separate fields), or writing elements of the transaction to the user record in my app.

However, the zap fails when I want to write metadata back to the stripe customer record.  Here’s the error:

Failed to create an updated customer in Stripe

The app returned "No such customer: 'cus_xxxxxxxxxxxxxx'; a similar object exists in test mode, but a live mode key was used to make this request.”

 

Zapier is only aware of the sk_test API key.  No live keys have been enabled.  How can Zapier be using a live mode key? More importantly, how can I force it to look at test data?

Hey ​@4smgordon,

Here is an article for using test mode for Stripe in Zapier- https://help.zapier.com/hc/en-us/articles/31812286026253-How-to-use-test-mode-data-with-Stripe-on-Zapier

Referencing the process from the article-

  • Enable Stripe's test mode  
  • Create a Stripe secret API key
  • Connect to Stripe test mode on Zapier
  • Setting up your supported trigger or action
  • Test your Zap
  • Disable test mode

Look into the article for more detailed information. You may also want to reconnect the Stripe account and ensure that it use the Test API instead of live one to see if it fixes it. Hope it helps!