Two questions about real time observers and Stripe on server side Dart with Aqueduct

73 Views Asked by At

I'm going to switch from using Firebase only for back end to using my own server using Aqueduct with a PostgreSQL db for most functionalities and keep using only Google Cloud Storage and Firebase Cloud Messaging. As for Stripe payments I will have to set some Firebase Cloud Functions, I'd like to make my own endpoints in Aqueduct instead. I'm not sure there is a Stripe SDK to use in Aqueduct, as for Firebase, but as Stripe has a cUrl API I'm sure I can get to use that.
Is this a viable solution for Stripe payments? Are real time observers available on Aqueduct + PostgreSQL as I'm using them on certain Firestore collections? I searched for it but haven't found any Stripe + Aqueduct specific guide or post.. Any advice will be very helpful. As always many thanks for the help. Cheers.

1

There are 1 best solutions below

2
floatingLomas On

While there isn't an official Stripe Dart library, there is a community one, though I can't speak to its completeness/correctness: https://gitlab.com/exitlive/stripe-dart

Otherwise you're either making HTTP requests (using the CURL API docs as a guide) in Dart, or maybe proxying them through some Cloud Functions so you can use the Javascript library.