CdvPurchase.Braintree.BraintreeReceipt
-
↳
BraintreeReceipt
• new BraintreeReceipt(paymentRequest
, dropInResult
, decorator
)
Name | Type |
---|---|
paymentRequest |
PaymentRequest |
dropInResult |
Result |
decorator |
TransactionDecorator & ReceiptDecorator |
Receipt.constructor
• dropInResult: Result
• paymentRequest: PaymentRequest
• 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
▸ refresh(paymentRequest
, dropInResult
, decorator
): void
Name | Type |
---|---|
paymentRequest |
PaymentRequest |
dropInResult |
Result |
decorator |
TransactionDecorator |
void
▸ verify(): Promise
<void
>
Verify a receipt
Promise
<void
>