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!


Hi ​@4smgordon 👋 Did Sparsh’s reply help you to get rid of that error?

Let us know whether you need any more help, want to make sure this gets sorted!


Hello, 

I still have the same experience.  The only thing I can conclude is that Updating test records is not supported by Zapier.

 

 


@SamB, ​@Sparsh from Automation Jinn 

 

Resumed testing to confirm that even the Find Customer event will not retrieve test records:

ZAP SETUP

 

ZAP ERROR

 

 

STRIPE TEST RECORD

 


Sorry to hear that ​@4smgordon. Ah yes, you’re right about Update Customer actions not supporting test mode. The Find Customer action should support it though.

If you change it to search for the customer by email instead of ID does it still error, or is it able to find the customer? Just wondering whether it’s an issue specific to searching for customers by id while test mode is enabled, or whether searching by their email address in test mode is also affected. 🤔

That said, your setup looks correct so I suspect it could be a bug. I couldn’t see any existing bug reports mentioning this behavior, so I’d recommend contacting our Support team to look into this further. They’ll be able to determine whether it is definitely a bug and can open up a bug report for our engineers to fix.

Keep us posted on how it goes!