Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to obtain the receipt of the apple app store by purchase of qt?
Forum Updated to NodeBB v4.3 + New Features

How to obtain the receipt of the apple app store by purchase of qt?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 127 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    senmx
    wrote on last edited by
    #1

    Below is an example of Qt, should be able to get receipt in onPurchaseSucceeded, how?

    Product {
        id: product100Vowels
        store: iapStore
        type: Product.Consumable
        identifier: "org.qtproject.qthangman.100vowels"
    
        onPurchaseSucceeded: {
            console.log(identifier + " purchase successful");
            applicationData.vowelsAvailable += 100;
            transaction.finalize();
            pageStack.pop();
        }
    
        onPurchaseFailed: {
            console.log(identifier + " purchase failed");
            console.log("reason: "
                        + transaction.failureReason === Transaction.CanceledByUser ? "Canceled" : transaction.errorString);
            transaction.finalize();
        }
    }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved