Using Braintree with Realm Cloud?


#1

I want to collect payments on my app with Braintree. I’m using Realm Cloud, will I be able to set up my server to manage the payment nonce?

See https://developers.braintreepayments.com/start/hello-server/ruby


#2

@tuzmusic The cloud instance does not run any user defined code - you would need to run a standalone node.js or .net app using a realm sdk that would act as a bridge between Braintree and Realm.

The flow would be Braintree <> Node.js app With Realm-js SDK <> ROS <> Realm Mobile Client

See here
https://docs.realm.io/platform/using-synced-realms/server-side-usage


#3

Thanks Ian. We’re now starting to get outside my expertise, though I’m ready to go there. Where is that app hosted? Would it make more sense to go back to hosting my Realm on AWS and just do the server stuff there?


#4

@tuzmusic You would need to build a node.js app that you would run on say an AWS EC2 instance. This would connect to ROS Cloud and get a nonce for Braintree