Services Plugins FAQs

Bug: Stripe marketplace token

I followed the sample for the plugin and running into error. Please tell me what I am doing wrong.

The plugin Stripe Marketplace Express / element Stripe Marketplace Token threw the following error: UnexpectedError Expected a string, but got a number (original data: 400)
at I (https://dhtiece9044ep.cloudfront.net/package/run_debug_js/f12ce9dbe2c2ec42bcbf9047444cf75bb8d236fd9c47c9be4af7f911fe699bbe/xfalse/x7:9:598223)
at Object.JS_to_bubble (https://dhtiece9044ep.cloudfront.net/package/run_debug_js/f12ce9dbe2c2ec42bcbf9047444cf75bb8d236fd9c47c9be4af7f911fe699bbe/xfalse/x7:9:606032) (please report this to the plugin author)

I was able to successfully replicate my settings to look like the plugin on bubble editor. when I test on the plugin-in page it the Stripe express marketplace works fine. When I test in my apps Version-test I get an error message: The plugin Stripe Marketplace Express / element Stripe Marketplace Token threw the following error: UnexpectedError Expected a string, but got a number (original data: 400)

Hi @AlexaAnne,

This error reproduces when inserting invalid Account number/Routing number:

You can click to show documentation for each field:

And you can get testing back accounts here https://stripe.com/docs/connect/testing with appropriate data.

Hope it helps.

Best,
Alex

1 Like

@alexandru thank you for the explanation. I got it to work well in gigster app and also in the coursely app. Though I followed the same steps, I ran into a small issue in coursely app- this time it’s the card token issue. Header Value Incorrect How do I make a fix to this?

Screen Shot 2020-06-24 at 4.25.06 AM

Hi @AlexaAnne,

Could you please make sure that the API Keys & Client IDs are the appropriate ones for Live vs Test modes, and make sure their values do not contain any spaces before/after the actual value. If you tell that Gigster works properly and not Coursely, but they seem to have the same settings, make sure whether you don’t miss something and the steps are the same.

However, if you still experience the same or any other issues, share more details as usual: screenshots of app and workflow settings, steps to reproduce this error, console logs of browser etc, so we can get a better troubleshooting and provide a working solution asap.

Thanks

@alexandru I checked all the setting and workflow. It looks to be in the StripeMarketplace Link a customer to a Seller (header) stripe-account.

I made sure the seller has registered with stripe (Bus_account = Stripe Seller ID) and the customer is attempting to buy a course from that seller. When customer click to buy the checkout page is launched then customer click to Pay with Stripe. Workflow is set up to show pop-up stripeCharge. When customer enters info. token is created to save the card for later use and charge the customer.

Now I get a New error:

The service Stripe marketplace - Link a customer to a seller just returned an error (HTTP 400). Please contact the plugin author directly for feedback. Raw error:

{
** "error": {**
** "message": "Your account cannot currently make charges. To find out why charge creation is currently disabled, look at the requirements.disabled_reason property on this account (/v1/accounts/acct_1GxaMwFdGpTo5bSR).",**
** "type": "invalid_request_error"**
** }**
}


SOLVED - reviewed logs in stripe

@alexandru I got it to work but referencing the logs inside of my stripe account. I thought its Stripe Express Connect but it seems to want all the information.

I do need help with how to feed the phone number through the API. Is there any guide I should follow or tips to make the phone number feed properly to stripe?

Hi @AlexaAnne,

That error was related to the invalid Stripe account, at this point:

It has to be a Stripe account ID, having the format acc_XXXXXXXX

As for the phone number, I do not understand the request, unfortunately, but the way you can send the phone number is by whether creating or updating a seller action.

Hope it helps.

1 Like

@alexandru thank you for your response. I corrected the account number and the phone number needed a + sign. And its work. I have to go back correct other apps I was creating. I do wonder how the App Fee works for the course app unlike Gigster.

I am getting an interfere error when I try to charge the customer by the seller. Is there a format setting that I should be using?

Hi @AlexaAnne,

Thanks for your feedback. This one is popping up because the value for the cents is having a decimal value as I can see. Stripe already comes with built-in functionality for cents, meaning you just have to insert the value as 10 or 105, for instance. If you’re making any calculations, Bubble has a floor function that you can use and make things work.

Thanks

1 Like

@alexandru I got it all working. Thanks for your help.

For the coursely template: How do I properly modify and add more categories and subCategories? And how is it connected to categoryClass and subCategoryClass? Seems like it can only be created in the Data and not on frontend? Please help.

Hi @AlexaAnne,

Thanks for feedback. I’m glad it worked on your side as well.

These can be managed in your editor here:

Category table has a List of SubCategories, that you can also check here:

And if you want to make adjustments or add new ones, you just go to App Data tab:

And hit New Entry or click to edit the existing one. The same thing applies to SubCategories.

Unfortunately, it is only possible to manage it from your database, indeed. From app itself it would be possible to adjust some information regarding Category:

But not create new ones I’m afraid. However, you can add this functionality in Admin Panel at your own, so you’ll be able to modify this data in front-end.

Hope it helps.

1 Like