2
2 Comments

Finished Stripe and AWS Cognito Integration

These guys took way longer than expected to work through. I had to build a login system and setup the stripe system, and then connect them with a database table. I frequently update the core server, so I wanted to use externalized tools for handling most of this logic.

, Founder of Icon for unwyre.io
unwyre.io
on February 23, 2020
  1. 1

    Any tips on integrating Cognito and Stripe? I'm trawling through tutorials on how to implement something similar.

    1. 2

      Cognito just had a big release, so there might be a better way to do this now. Here is how I did it. I created a user table in DynamoDB. Then I created a lambda trigger to update DB that fires when a user has registered. Then another lambda trigger when the user verifies their email. Finally, I created a lambda function to run the server-side of the stripe script. This server side code will also update the user table when a user pays the subscription fee.

Trending on Indie Hackers
Show IH: I'm building a lead gen + CRM tool for web designers targeting local businesses without websites — starting with Spain User Avatar 64 comments How I built an AI workflow with preview, approval, and monitoring User Avatar 64 comments I built a URL indexing SaaS in 40 days — here's the honest story User Avatar 53 comments After 4 landing page rewrites, I finally figured out why my analytics SaaS wasn't converting User Avatar 21 comments We witnessed a sharp spike in our traffic. So much happiness after a long time. User Avatar 15 comments Creative Generator — create product-focused visuals and ad concepts faster User Avatar 11 comments