aws-serverless-airline-booking icon indicating copy to clipboard operation
aws-serverless-airline-booking copied to clipboard

[Payment] New API

Open heitorlessa opened this issue 3 years ago • 1 comments

Payment today is largely a thin abstraction to Stripe, as we wanted to demonstrate how customers could use SAR for app composition. As the Airline evolved, payment SAR App didn't.

We can fix this and other related issues like latency, disjoint endpoints, and AuthZ, by creating the API end-to-end, yet talking to Stripe directly instead of through the SAR App.

Minimal changes:

  • [ ] Recreate Stripe SAR App API - payment authorization, payment collection, payment refund
  • [ ] Ensure idempotency as Stripe does
  • [ ] Integrate GraphQL API with new Payment API directly via HTTP Data Sources
  • [ ] Update Process Booking State Machine to use Payment API not cross-function invoke
  • [ ] Tests

Optional depending who's tackling the issue:

  • [ ] Use Ports & Adapters to more easily change Payment gateway
    • [ ] Front-end might not be easily swappable due to iFrame security protections & card elements

heitorlessa avatar Nov 08 '21 12:11 heitorlessa

I am interested in fixing this issue. it will be great opportunity to solve it, if you allot me this issue . @heitorlessa @sthulb @julienlepine @hyandell @deldrid1

ArpanShah2k avatar Sep 11 '22 06:09 ArpanShah2k