Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Work in progress, troubles with Paycomet API to validate some flows.

image-20240304-201319.pngImage Removedimage-20240305-121214.pngImage Added

https://sequencediagram.org/

Code Block
title Paycomet Waylet Payment (Delivery)

Frontend->GraphQL:generateCheckoutLink()\n<< methodId: 41 >>
GraphQL->GraphQL:get Order and Store info
GraphQL->Paycomet-PSP-Service:POST {pspServiceBaseURL}api/v1/links/checkout\n << To generate HPP URL >>
Paycomet-PSP-Service->Paycomet(External):POST {paycometBaseURL}/v1/payments
Paycomet-PSP-Service<-Paycomet(External):Return Waylet link
Paycomet-PSP-Service->GraphQL:Return sanitized Hosted Page URL
GraphQL->Frontend:Return Hosted Page URL
Frontend->Frontend:Render Hosted Page
>Paycomet(External):Render Hosted Page
Frontend-->Paycomet(External):Submit Waylet Validation\n<< After guest interaction with Hosted Page >>
Paycomet(External)-->Paycomet-PSP-Service: Callback URL OK/NOK
Paycomet-PSP-Service->Frontend:Return Payment Outcome
Frontend->GraphQL:commitOrder() mutation\n<< Backend commit disabled >>
GraphQL->Paycomet-PSP-Service:POST {pspServiceBaseURL}api/v1/payment
note over Frontend,Paycomet(External):Work in progress continue here validateSale()
Paycomet-PSP-Service-->GraphQL: Sale OK/NOK
GraphQL->GraphQL: Hydrate Order and Update Order status
GraphQL->Frontend: Order Ok, confirmation page.