Solved

Debugging: Invalid Stripe. Make sure your Stripe account is properly connected.

  • 2 November 2021
  • 4 replies
  • 359 views

Badge +2

Hi, 

 

We’re setting up Stripe on our webapp to work alongside our app. Now we’ve connected Stripe successfully through the dashboard and it looks ok there. But now when we want to save the receipt to RevCat is gives us this error: 
 

{
"code": 7116,
"message": "Invalid Stripe. Make sure your Stripe account is properly connected."
}

 

Don’t think the problem is the call itself, but here is the code: 

const _response = await fetch('https://api.revenuecat.com/v1/receipts', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Platform': 'stripe',
'Authorization': 'Bearer ' + REVCAT_KEY,
},
body: JSON.stringify({
fetch_token: _subscriptionId,
app_user_id: _userId,
}),
});

Is there any way to get some clearer debug logs on what exactly is wrong?

icon

Best answer by N.Smet 3 November 2021, 16:38

View original

4 replies

Badge +2

We managed to solve it, can be closed

 

 

Badge +1

@N.Smet Facing the same issue. how did you solve this

Badge +2

It was really weird and frustrating :D I didn’t setup RevCat, my colleague did. I tried to connect Stripe and it kept saying it was invalid. My colleague did it and it all worked magically …. so let the original account creator do it and maybe it’s fixed for you too 

 

Badge +1

Thanks @N.Smet.. worked for me :)

Reply