Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to manually checking transaction state #27

Merged
merged 16 commits into from
Mar 7, 2017
Prev Previous commit
Style fixes
  • Loading branch information
dafortune committed Mar 7, 2017

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
commit 6d9b19e92ea04bace29e619a54d59aa900df8a12
6 changes: 4 additions & 2 deletions lib/transaction/index.js
Original file line number Diff line number Diff line change
@@ -233,13 +233,15 @@ transaction.prototype.serialize = function serialize() {

var data = {
transactionToken: this.transactionToken.getToken(),
enrollmentAttempt: this.enrollmentAttempt ? this.enrollmentAttempt.serialize() : undefined,
enrollments: object.map(this.enrollments, enrollmentSerialize),
baseUrl: this.httpClient.getBaseUrl(),
availableEnrollmentMethods: this.availableEnrollmentMethods,
availableAuthenticationMethods: this.availableAuthenticationMethods
};

data.enrollments = object.map(this.enrollments, enrollmentSerialize);

data.enrollmentAttempt = this.enrollmentAttempt
? this.enrollmentAttempt.serialize() : undefined;
data.authVerificationStep = self.authVerificationStep
? self.authVerificationStep.serialize() : null;
data.enrollmentConfirmationStep = self.enrollmentConfirmationStep