DVFakeStoreAdapter class
- Implemented types
Constructors
- DVFakeStoreAdapter(DVStore store, {required String signingKey, Duration? acknowledgementWindow})
Properties
-
acknowledged
→ List<
String> -
Transaction ids acknowledged, in order.
final
- acknowledgementWindow → Duration?
-
How long the store waits for an acknowledgement before refunding, or
null when it needs none. Play: three days. The App Store: null.
final
- failAcknowledgements ↔ bool
-
Makes every acknowledgement fail, as a store outage would.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → DVStore
-
final
-
Makes every call fail as unreachable.
getter/setter pair
Methods
-
acknowledge(
{required String originalTransactionId, required String transactionId, required String storeProductId}) → Future< void> -
Tells the store the purchase was granted.
override
-
issue(
String receipt, DVStoreTransaction transaction) → void -
Makes
receiptverify astransaction. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refuse(
String receipt, String reason) → void -
Makes
receiptrefused, forreason. -
sign(
DVStoreNotification notification) → DVSignedStoreNotification -
notificationas this store would deliver it. -
toString(
) → String -
A string representation of this object.
inherited
-
verifyNotification(
String body, Map< String, String> headers) → Future<DVStoreNotification> -
Verifies a store server notification's signature and returns what it
says, re-reading the purchase from the store where the notification does
not carry it (Play's do not).
override
-
verifyReceipt(
String receipt) → Future< DVStoreTransaction> -
Asks the store about
receipt-- a StoreKit signed transaction or a Play purchase token -- and returns its answer.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- signatureHeader → const String
- The header the signature travels under.