Repositories on this feature:
Packages: https://github.com/rbilabs/intl-packages
Fulfillment: https://github.com/rbilabs/intl-fulfillment-service
PSP Paycomet Service:https://github.com/rbilabs/intl-psp-paycomet-service
Whitelabel Graphql: https://github.com/rbilabs/intl-whitelabel-graphql
Business Rules
Similar to Paypal and Bizum, Waylet has his own interface, provided by Paycomet, which should be instantiated per request of checkout link.
Waylet should be identified on Admin/Support Tool
Breakdown
Add Waylet into packages
Add to packages
Add to PSP Service
Add to graphQL
Sequence Diagram
Work in progress, troubles with Paycomet API to validate some flows.
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->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: validateSale() Paycomet-PSP-Service-->GraphQL: Sale OK/NOK GraphQL->GraphQL: Hydrate Order and Update Order status GraphQL->Frontend: Order Ok, confirmation page.
Add Comment