Skip to content

Instantly share code, notes, and snippets.

@xesrevinu
Created July 7, 2023 07:04
Show Gist options
  • Select an option

  • Save xesrevinu/52e595e184b43751b0d683f0af805241 to your computer and use it in GitHub Desktop.

Select an option

Save xesrevinu/52e595e184b43751b0d683f0af805241 to your computer and use it in GitHub Desktop.
Merchant
Merchant
Order
Checkout -> PSP Gateway
PSP Gateway
Success -> Generate QRCode
Failed -> Checkout Error
Generate QRCode
Scan -> Digital Wallet App
Cancel -> Merchant
Checkout Error
OK -> Merchant
Digital Wallet App
Home
Cancel -> Home
Scan -> Check Scan Result
Check Scan Result
Success -> PSP Gateway Result
Failed -> Pay Error
PSP Gateway Result
Success -> Merchant
Faild -> Pay Error
Pay Error
OK -> Merchant
function render(model){
function addImage() {
if (model.active_states[0].image_url) {
return $("img",
{src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
} else {
return "No image available."
}
}
return (
<div style={{textAlign: "center"}}>
<h1>{model.active_states[0].name}</h1>
{addImage()}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment