Created
July 12, 2017 15:36
-
-
Save jinhduong/6f5b9d6999e09ca97a7ca4f244081a38 to your computer and use it in GitHub Desktop.
transation-function
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
@LoadingIndicator() | |
checkTransaction(tran: Transaction) { | |
return this._checkoutService.checkBbsTransaction(tran) | |
.map(res => res.json()) | |
.subscribe(res => { | |
if (AuthHelper.isLoggedIn()) { | |
this.router.navigate(['my-orders']); | |
} else { | |
this.message = tran.transactionId; | |
this.isSuccess = true; | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment