# Error: Expected a string, but got a number (original data: 402)

**URL:** <https://forum.bubble.io/t/error-expected-a-string-but-got-a-number-original-data-402/192004>\
**Category:** Need help\
**Created:** [February 16, 2022, 9:51pm UTC](https://forum.bubble.io/t/error-expected-a-string-but-got-a-number-original-data-402/192004 "2022-02-16T21:51:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampll](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@sampll](https://forum.bubble.io/u/sampll)\
**Post date:** [February 16, 2022, 9:51pm UTC](https://forum.bubble.io/t/error-expected-a-string-but-got-a-number-original-data-402/192004/1 "2022-02-16T21:51:42Z")

</div>

Hey guys,

I have been using the Stripe marketplace express plugin for a while now and everything works fine. Now all of a sudden when you try and add a credit card I get this message:

Error: Expected a string, but got a number (original data: 402)

Not sure what happened? Anyone else getting this problem?

Thank you!

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [February 16, 2022, 10:42pm UTC](https://forum.bubble.io/t/error-expected-a-string-but-got-a-number-original-data-402/192004/2 "2022-02-16T22:42:38Z")

</div>

I’m not familiar with that plug-in, but according to the Stripe docs, that error means the request parameters were valid but the request failed nonetheless. That’s not much to go on. It might mean the card is invalid, or it might mean the plugin is using a deprecated API.

Stripe integrations should be using the [PaymentIntents API](https://stripe.com/docs/payments/payment-intents) and not the outdated “[Card payments with Sources](https://stripe.com/docs/sources/cards)”. I’m not saying that’s the issue for sure, but if you know the card is good, you might want to check with the plugin author.

---

<div class="post-metadata">

**Author:** ![sampll](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@sampll](https://forum.bubble.io/u/sampll)\
**Post date:** [February 17, 2022, 2:30am UTC](https://forum.bubble.io/t/error-expected-a-string-but-got-a-number-original-data-402/192004/3 "2022-02-17T02:30:07Z")

</div>

Thank you for your feedback! I did reach out to the plugin author, still waiting on what they say. I do appreciate your help!

---

<div class="post-metadata">

**Author:** ![biblebase.co](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/biblebase.co/32/118913_2.png) [@biblebase.co](https://forum.bubble.io/u/biblebase.co)\
**Post date:** [March 21, 2022, 7:57am UTC](https://forum.bubble.io/t/error-expected-a-string-but-got-a-number-original-data-402/192004/4 "2022-03-21T07:57:49Z")

</div>

Hi @sampll , Did hear anything from them regarding this issue? I’m also experiencing this now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 27, 2022, 9:51pm UTC](https://forum.bubble.io/t/error-expected-a-string-but-got-a-number-original-data-402/192004/5 "2022-04-27T21:51:55Z")

</div>

Closed on April 27, 2022, 9:51pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
