Skip to content

Instantly share code, notes, and snippets.

@vinh0604
Last active July 3, 2023 08:38
Show Gist options
  • Select an option

  • Save vinh0604/eb2a09db9d118e01d681fdd0fd849225 to your computer and use it in GitHub Desktop.

Select an option

Save vinh0604/eb2a09db9d118e01d681fdd0fd849225 to your computer and use it in GitHub Desktop.
Merchant Checkout
Merchant Checkout
Display QRPH QR code
scan -> Payment Info
Tenant Mobile App
Payment Info
input amount currency -> Confirm Payment
Confirm Payment
confirm -> Submit Transaction
Submit Transaction&
Processing payment
submit -> Approve Transaction
Display payment processing
Payment Success
Payment Failed
Tenant Backend
Approve Transaction
send txn & QR info -> Process Transaction
Charged Notification
send notification -> Payment Success
Cancelled Notification
send notification -> Payment Failed
OF
Process Transaction
submit Account-To-Account fund transfer -> PESONet - Instapay
OF transaction success
send notification -> Charged Notification
OF transaction pending
poll status -> retrieve fund transfer
OF transaction failed
send notification -> Cancelled Notification
Netbank
PESONet - Instapay
process fund transfer
settled -> OF transaction success
for_settlement -> OF transaction pending
pending -> OF transaction pending
rejected -> OF transaction failed
retrieve fund transfer
settled -> OF transaction success
for_settlement -> OF transaction pending
pending -> OF transaction pending
rejected -> OF transaction failed
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment