CdvPurchase.Receipt
-
Receipt
↳
Receipt
• platform: Platform
Platform that generated the receipt
• transactions: Transaction
[] = []
List of transactions contained in the receipt, ordered by date ascending.
▸ finish(): Promise
<void
>
Finish all transactions in a receipt
Promise
<void
>
▸ hasTransaction(value
): boolean
Return true if the receipt contains the given transaction
Name | Type |
---|---|
value |
Transaction |
boolean
▸ lastTransaction(): Transaction
Return the last transaction in this receipt
▸ verify(): Promise
<void
>
Verify a receipt
Promise
<void
>