Skip to content

Commit

Permalink
fix: added missing iOS appAccountToken on ProductPurchase TS interface
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinNpApnl committed Aug 2, 2023
1 parent 910ef24 commit 052e5c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/appleSk2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export const transactionSk2ToPurchaseMap = ({
purchasedQuantity,
originalID,
verificationResult,
appAccountToken
}: TransactionSk2): Purchase => {
const purchase: Purchase = {
productId: productID,
Expand All @@ -157,6 +158,7 @@ export const transactionSk2ToPurchaseMap = ({
originalTransactionDateIOS: originalPurchaseDate,
originalTransactionIdentifierIOS: originalID,
verificationResultIOS: verificationResult ?? '',
appAccountToken: appAccountToken ?? '',
};
return purchase;
};
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface ProductPurchase {
originalTransactionDateIOS?: number;
originalTransactionIdentifierIOS?: string;
verificationResultIOS?: string;
appAccountToken?: string;
//Android
productIds?: string[];
dataAndroid?: string;
Expand Down

0 comments on commit 052e5c5

Please sign in to comment.