Pay by Cheque

Endpoint: POST /v2/moneyins/cheque/init

To view the diagram copy and paste the code on the following site:

https://sequencediagram.org/

title Pay By Cheque

participant Customer
participant Partner
participant Lemonway_API_Public
participant Lemonway_Webhook (Webhook Webservice)
participant Lemonway_API_Private (Webkit Webservice)
participant ACQ
participant "Payment Service Provider (Viamobis)" as PSP
participant Banks

Customer->Partner: Request payment
Partner->Lemonway_API_Public: MoneyInChequeInit
Lemonway_API_Public->ACQ: CreatePendingMoneyInCheque
ACQ->Lemonway_API_Public: CreatePendingMoneyInChequeResponse
Lemonway_API_Public->Partner: Transaction object
group Send cheque manually
Customer->PSP: Send cheque to Viamobis
PSP-->Lemonway_Webhook (Webhook Webservice): Viamobis_UpdateChequeStatus
Lemonway_Webhook (Webhook Webservice)->Lemonway_API_Private (Webkit Webservice): WK_UpdateChequeStatus

group #2f2e7b Viamobis rejects cheque #white [condition]
Lemonway_API_Private (Webkit Webservice)->ACQ: RejectPendingMoneyInCheque
ACQ->Lemonway_API_Private (Webkit Webservice): RejectMoneyChequeResponse
Lemonway_API_Private (Webkit Webservice)->Partner: Send notification
end
end
group Viamobis deposits cheque
PSP->Banks: Deposit
PSP->Lemonway_Webhook (Webhook Webservice): Update cheque status
Lemonway_Webhook (Webhook Webservice)->Lemonway_API_Private (Webkit Webservice): WK_UpdateChequeStatus
Lemonway_API_Private (Webkit Webservice)->ACQ:DepositChequeAsyc
end