pub struct ReceiptValidator;Expand description
Helpers for StoreKit receipts and signed payloads.
Implementations§
Source§impl ReceiptValidator
impl ReceiptValidator
Sourcepub fn current_receipt() -> Result<Option<AppReceipt>, StoreKitError>
pub fn current_receipt() -> Result<Option<AppReceipt>, StoreKitError>
Fetches the current app receipt from StoreKit.
Fetches StoreKit.AppTransaction.shared.
Sourcepub fn refresh_app_transaction() -> Result<VerificationResult<AppTransaction>, StoreKitError>
pub fn refresh_app_transaction() -> Result<VerificationResult<AppTransaction>, StoreKitError>
Fetches StoreKit.AppTransaction.refresh().
Sourcepub fn extract_unverified_payload(jws: &str) -> Result<Value, StoreKitError>
pub fn extract_unverified_payload(jws: &str) -> Result<Value, StoreKitError>
Decodes a StoreKit JWS payload without verifying its signature.
Trait Implementations§
Source§impl Clone for ReceiptValidator
impl Clone for ReceiptValidator
Source§fn clone(&self) -> ReceiptValidator
fn clone(&self) -> ReceiptValidator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReceiptValidator
impl Debug for ReceiptValidator
Source§impl Default for ReceiptValidator
impl Default for ReceiptValidator
Source§fn default() -> ReceiptValidator
fn default() -> ReceiptValidator
Returns the “default value” for a type. Read more
impl Copy for ReceiptValidator
Auto Trait Implementations§
impl Freeze for ReceiptValidator
impl RefUnwindSafe for ReceiptValidator
impl Send for ReceiptValidator
impl Sync for ReceiptValidator
impl Unpin for ReceiptValidator
impl UnsafeUnpin for ReceiptValidator
impl UnwindSafe for ReceiptValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more