DVStoreAdapter class abstract

One store's server-side verification.

An implementation calls the store's own endpoints with credentials from Secrets and Environments. There is deliberately no implementation that runs on a device: the code checking a receipt there is the code an attacker controls.

Constructors

DVStoreAdapter()

Properties

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.
no setter
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
no setter

Methods

acknowledge({required String originalTransactionId, required String transactionId, required String storeProductId}) → Future<void>
Tells the store the purchase was granted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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).
verifyReceipt(String receipt) → Future<DVStoreTransaction>
Asks the store about receipt -- a StoreKit signed transaction or a Play purchase token -- and returns its answer.

Operators

operator ==(Object other) → bool
The equality operator.
inherited