outr / scala-stripe

Complete Browser and Server client integration of Stripe in Scala and Scala.js
MIT License
12 stars 8 forks source link

Error on decoding json while creating account #15

Open lakshyabatman opened 3 years ago

lakshyabatman commented 3 years ago

I've ran stripeClient.accounts.create(custom = false) and got this error Exception in thread "main" com.outr.stripe.PicklerException: Unable to decode Caused by: DecodingFailure(String, List(DownField(businessName))) , as in the payload the bussiness_name was null. can this be a problem ?

darkfrog26 commented 3 years ago

It's expecting a businessName but it doesn't look like Stripe is sending it back. If you'd like to submit a PR, I would be happy to merge and do a new release for you.

lakshyabatman commented 3 years ago

Sure, I can try that.

lakshyabatman commented 3 years ago

@darkfrog26, mind if you can provide some installation-related guide, I'm facing a lot of issues while building the project

The whole build.sbt is throwing error cannot resolve error and I tried changing Scala version from 13 to 12 as well.

lakshyabatman commented 3 years ago
Screenshot 2021-08-26 at 1 14 40 PM
darkfrog26 commented 3 years ago

Are you perhaps using an older version of SBT?

lakshyabatman commented 3 years ago

Here, I'm using sbt 1.5.2

Screenshot 2021-08-30 at 12 21 15 PM
darkfrog26 commented 3 years ago

I just checked the project out on a new machine and everything worked fine. However, I just pushed a small change to update SBT to the latest version if there's some resolver issue you're experiencing, perhaps that will fix it. Try updating your project from master and see if that fixes it.