DVAppStoreAdapter class

The App Store as a DVStoreAdapter.

Implemented types

Constructors

DVAppStoreAdapter({required String bundleId, int? appAppleId, Set<String> environments = const <String>{'Production', 'Sandbox'}, bool allowXcode = false, List<List<int>>? rootCertificates, DateTime clock()?, String? inAppKeyId, String? inAppPrivateKeyPem})

Properties

acknowledgementWindow → Duration?
None: the App Store does not refund an unacknowledged purchase.
no setteroverride
appAppleId → int?
The App Store's id for the application, checked against notifications that carry one. Sandbox notifications do not.
final
bundleId → String
The application's bundle identifier. A transaction for any other is another application's purchase.
final
environments → Set<String>
The environments accepted. Production and Sandbox by default: App Review buys in the sandbox against the production build, and refusing it is a rejected submission. Xcode's local testing signs with a key of its own and is accepted only when asked for.
final
hashCode → int
The hash code for this object.
no setterinherited
inAppKeyId → String?
The In-App Purchase key id that signs promotional offers, or null.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → DVStore
no setteroverride

Methods

acknowledge({required String originalTransactionId, required String transactionId, required String storeProductId}) → Future<void>
Tells the store the purchase was granted.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signOffer({required String storeProductId, required String offerId, required String appAccountToken}) → Future<DVStoreOfferSignature>
override
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

Static Properties

appleRootCaG3 → Uint8List
Apple Root CA - G3, as Apple publishes it at https://www.apple.com/certificateauthority/AppleRootCA-G3.cer. SHA-256 fingerprint 63343ABFB89A6A03EBB57E9B3F5FA7BE7C4F5C756F3017B3A8C488C3653E9179; it expires on 30 April 2039.
final