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
#2506)

Fixing issue #2434

Co-authored-by: Nippert <quentin.n@apps-panel.com>
  • Loading branch information
quentinnippert and quentinNpApnl committed Aug 13, 2023
1 parent 80c5e11 commit be274b5
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 be274b5

Please sign in to comment.