deepwall
HomeContact UsLogin
  • Overview
  • System Components
  • Key Concepts
  • How It Works
  • Sign In
  • 🚀GETTING STARTED
  • App Registration
  • Configure In-App Products
  • Paywall Setup
    • Create A Paywall
    • Configure Look & Feel
    • Texts and Translations
  • Displaying Paywalls
    • Activate Default Displays
    • Create Targeted Displays
    • Display Priorities
    • Display Reports
    • Edit Displays
    • Display Rules
    • On Close Paywalls
  • Store Configuration
  • Attributions Configuration
  • App Status and Settings
  • ⚙️ SDK Framework
    • SDK Installation
      • iOS SDK
      • Android SDK
      • React Native SDK
      • Flutter SDK
      • Cordova SDK
      • Unity SDK
    • Using the SDKs
      • Initialization
      • Configuration
      • Listening SDK Events
      • Requesting Paywalls
      • Closing a Paywall
      • Validating Receipts
      • Making Purchases
      • Upgrades and Downgrades
      • Non-subscription Purchases
      • Restoring Purchases
      • Transition To Another Paywall
  • 🧪EXPERIMENTS
    • Experiments Overview
    • Create Experiments
    • Experiment Reports
    • Manual Traffic Allocation
    • Update Experiments
    • How Optimization Works?
  • 📦Integrations
    • Integrations Overview
    • Events List
    • Adjust
      • Get App Token
      • Create Adjust Events
    • AppsFlyer
      • Get Dev Key
    • Webhooks
    • OneSignal
  •  App Tracking (iOS 14.5)
    • App Tracking Overview
    • Configure In-app Actions
    • Create ATT Prompt
    • Displaying ATT Prompts
    • Experiments
  • 📈DASHBOARD
    • App Overview
    • Invite Members
    • Access Management
  • GUIDES
    • Apple
      • Getting the App Credentials
      • Setup In-App Products
      • Getting the Shared Secret
      • Server to server notifications
    • Google
      • Getting App Credentials
      • Setup In-App Products
      • Create Service Account Key
      • Developer Notifications
    • Huawei
      • Getting App Credentials
      • Setup In-App Products
      • Developer Notifications
  • 🔍Testing
    • Test Flows
    • Troubleshooting
    • Sandbox Testing
      • Apple App Store
      • Google Play Store
  • 🔗SDK Links
  • iOS SDK
  • Android SDK
  • React Native SDK
  • Flutter SDK
  • Cordova SDK
  • Unity SDK
Powered by GitBook
On this page

Was this helpful?

  1. ⚙️ SDK Framework
  2. Using the SDKs

Validating Receipts

Learn how to validate receipts in Deepwall

Deepwall SDK validates receipts automatically after user properties configuration if there is a receipt change.

So, after Deepwall's automatic receipt validation during application startup, if the user is opening the app with Deepwall for the first time, or if there is a receipt change, you will receive a purchase success event if the receipt is successfully validated and a purchase fail event if cannot be validated.

On the other side, you can validate receipts whenever you need in your app flow. Use the validateReceipt method for this purpose and check the purchase success and purchase fail events.

You can use the method with following parameters for different purposes:

  • PURCHASE : Validates latest receipt

  • AUTOMATIC : Validates latest receipt if there is a change since last app launch

Deepwall.shared.validateReceipt(for: .PURCHASE)
DeepWall.validateReceipt(validationType : DeepWallReceiptValidationType)
DeepWall.getInstance().validateReceipt(DeepWallValidateReceiptTypes.PURCHASE);
DeepwallFlutterPlugin.validateReceipt(ReceiptValidationType.PURCHASE.value);
cordova.DeepwallCordovaPlugin.validateReceipt(ValidateReceiptTypes.PURCHASE, function(response){
    console.log(response);
}, function(error){
    console.log(error);
});

PreviousClosing a PaywallNextMaking Purchases

Last updated 3 years ago

Was this helpful?