Created
July 7, 2023 07:04
-
-
Save xesrevinu/52e595e184b43751b0d683f0af805241 to your computer and use it in GitHub Desktop.
Merchant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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