2
6 Comments

Stripe Connect Help?

I'm looking to implement a marketplace into my iOS app where people can charge their audience for events.

Does anyone have any experience with setting up the server side of Stripe Connect?

I'm pretty confident on implementing the client side code, but really unsure about the server side. Any help would be appreciated.

on February 20, 2021
  1. 1

    @kurtlibby Hi Kurt, hope you are well. Are you looking to hire an expert?

  2. 1

    I've built a couple marketplaces on Connect. It is not simple, but it is fairly straightforward.

    What specific questions do you have? The docs are pretty good if you have a decent understanding of the business process (how money will flow, and who represents each side of the transaction), so I recommend following those through. You can simulate pretty much the whole process just using the Stripe website, which I found helps a lot. Then translate each step of the process into code based on the snippets in the docs.

    1. 1

      Thanks Edward. My question is on the server stuff.

      I do have a database and sync with MongoDB and Realm, but it says to install Stripe on the server and I’m not sure what that means.

      https://www.dropbox.com/s/s1ctjqm5l6974d3/Photo Feb 20%2C 8 15 42 AM.jpg?dl=0

      Do I need to create a server just for Stripe? Am I supposed to figure out a way to do this with the database?

      I’m just unsure about the server-side portion of the docs because Up to this point I have been developing the mobile app and MongoDB Realm abstracts away the server portion in many ways.

      Thanks for any light you can shed on this.

      1. 1

        Ah, so your mobile frontend is connecting directly to mongodb realm?

        I'm not familiar with realm, but a quick look at the docs indicates that they support javascript functions: https://docs.mongodb.com/realm/functions/

        You should be able to utilize this to do what you need to do.

        These realm functions run javascript, so you'll want to look at the javascript/node version of the stipe code samples.

        The "install stripe on the server" bit would be covered in this bit of the realm docs:

        https://docs.mongodb.com/realm/functions/upload-external-dependencies/

        That said, I'm not sure if realm functions are a full javascript environment, and whether they would work with the Stripe javascript sdk, or not.

        If not, you could still do what you need to do by just making HTTP calls to the stripe API and not use the stripe javascript SDK. It would be a bit more work.

        It might be worth shooting a message to mongodb realm support to see if they have any code, tutorials, guides, or tips on this.

        You can't be the first to try to do this.

        1. 1

          Hey Edward,

          I was able to get this working finally. Apparently MongoDB had some issues loading the stripe dependencies for server side functions, but they have gotten that worked out and it's firing as it should. 🎉

          I'm having quite a bit of difficulty understanding the Universal links and handling the user returning to the iOS app ( Step 2.4 >> https://stripe.com/docs/connect/enable-payment-acceptance-guide?platform=ios#ios-handle-user ).

          Do you have any experience with this or know anyone that might be able to help me set this part up?

          Thanks!

          --Kurt

        2. 1

          True. That's helpful to know to look at MongoDB to keep this all in the same place. I'll google a bit more about using functions on MongoDB and post on the forums over there if I can't find anything.

          Thanks so much!