llamanodes / web3-proxy

Fast loadbalancing and caching proxy for Ethereum or chains with similar JSON-RPC methods
https://llamanodes.com
GNU General Public License v3.0
148 stars 33 forks source link

Stripe Integration | Back-End Endpoint & Hooks #135

Closed LlamaMB closed 1 year ago

LlamaMB commented 1 year ago

Objective: Integrate Stripe into relevant backend endpoint for front-end team consumption Context: Needs to accept (1) one-time payments/deposits and (2) reoccurring payments if possible via an arbitrary credit balance input that draws down and is changed at end of month).

Steps:

The frontend makes posts to stripe with a callback url of the backend endpoint. When stripe processes the payment, they post to it. Stripe sets a STRIPE_SIGNATURE header that we can verify. It's a cryptographic signature. We verify it on the backend

Documents: https://stripe.com/docs/webhooks/signatures https://stripe.com/docs/webhooks

*I'm assuming stripe tells us maximum limits when someone authorises a card for monthly billing. And that we won't need that from our own frontend. But need to check stripe docs to know

Once PR merged, we'll hand off to Front-End team. Thank you!!

yenicelik commented 1 year ago

https://github.com/llamanodes/web3-proxy/pull/140

yenicelik commented 1 year ago

We should be able to close this?