Skip to content

Instantly share code, notes, and snippets.

@jinhduong
Created July 12, 2017 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jinhduong/6f5b9d6999e09ca97a7ca4f244081a38 to your computer and use it in GitHub Desktop.
Save jinhduong/6f5b9d6999e09ca97a7ca4f244081a38 to your computer and use it in GitHub Desktop.
transation-function
@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