Best answer

WooCommerce error: A "Stripe Customer ID" value is required.". Error code: woocommerce_rest_invalid_payment_data".


Userlevel 1

We are trying to create a subscription when someone orders a certain product in Woocommerce, but we are getting the below error:

WooCommerce returned "Subscription payment method could not be set to stripe with error message: A "Stripe Customer ID" value is required.". Error code: "woocommerce_rest_invalid_payment_data".

There is no where in the ‘create subscription’ action zap that has a ‘stripe customer id’ field. There is a ‘Payment Details Method Id’ field but adding the stripe customer id here doesn't work. 

 

Any help is appreciated.

icon

Best answer by christina.d 27 July 2022, 23:12

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

11 replies

Userlevel 7
Badge +14

Hi @kingtyton 

Good question.

Please post screenshots with how your Zap steps are configured in order for us to have context.

You may need to add Zap steps to get the Stripe Customer ID:

 

Userlevel 1

Hello, the issue is not that we cannot find the stripe customer id. We can get that from the woocommerce order trigger that fires when someone orders. The problem is there is no where to put the stripe customer id in the ‘create subscription’ action. There a customer id for woocommerce customer id but not stripe customer id.

 

Userlevel 7
Badge +14

@kingtyton 

Please show detailed screenshots with how this Zap step is configured:

 

Userlevel 1

Ok, I cut out shipping address, billing etc as its not important.

 

Userlevel 1

here is the error:

 

Userlevel 7
Badge +14

@kingtyton 

I’d recommend checking the related “Payment method” fields since the error message seems to indicate that an unexpected/invalid value is being set as “stripe”.

 

 

Userlevel 1

I dont think so. One is ‘payment details method id’ and one is ‘stripe customer id’. I dont think they are the same. either way, I have tried to add the stripe customer id here and it doesn't work either. Ive also tried adding it to the ‘customer id’ field, which is the customer id for woocomerce.

Userlevel 7
Badge +14

@kingtyton 

Might be best to open a ticket with Zapier Support for further assistance: https://zapier.com/app/get-help

Userlevel 7
Badge +9

Hi there! 👋🏽 I wanted to pop in and update the topic with some details from the open ticket: 

I've taken a look at the open feature requests we have with the WooCommerce team and I can see we have already opened a feature request with them to include metadata fields (including Stripe ID) so I've added your details to that request. 

While we’re not able to offer a timeline on when or if this will be implemented, we’ll definitely email and keep the topic updated if that changes. 

Thanks again for flagging this and sharing your feedback with the team. It’s valued and appreciated!

Hi, did this ever get figured out?  We are running into the same issue.

Userlevel 6
Badge +3

Hi @sunica 

I’ve added your vote for this feature request, and we’ll  notify you via email once an update is readily available. Thanks.