Skip to content

Commit

Permalink
Merge pull request #233 from Yves-liu/DebugGooglePay
Browse files Browse the repository at this point in the history
[Untracked] Trying to figure out googlepay token before parsed
  • Loading branch information
timmy-circle authored Jul 6, 2022
2 parents c0883dd + ba459e3 commit e7a7699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/debug/payments/digitalWallets/paymenttokens.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ export default class ConvertToken extends Vue {
const callback = (paymentData: PaymentData) => {
const paymentTokenString =
paymentData.paymentMethodData.tokenizationData.token // payment token as JSON string
console.log('Token before it is parsed')
console.log(paymentTokenString)
const paymentToken: GooglePayTokenData = JSON.parse(paymentTokenString) // payment token as object with keys protocolVersion, signature, and signedMessage
this.googlePayTokenData.protocolVersion = paymentToken.protocolVersion
this.googlePayTokenData.signature = paymentToken.signature
Expand Down

0 comments on commit e7a7699

Please sign in to comment.