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
impl Copy for ReceiptValidator
Source§impl Debug for ReceiptValidator
impl Debug 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