mattt/CargoBay

Cargobay Verify Receipt not working on Yosemite

KatkayApps opened this issue · 1 comments

Verify receipt not working on Yosemite. Routine never calls back.

One thing that cargobay lacks is the ability to verify if one particular inapp was purchased, I mean, checking it by the productID.

It looks like somebody tried to work on this code but it was never completed. See CarboBay.m:

#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
NSData * CBTransactionReceiptFromPaymentTransaction(SKPaymentTransaction *transaction) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    // if ([NSBundle instancesRespondToSelector:@selector(appStoreReceiptURL)]) {
    //     NSError *error = nil;
    //     NSData *data = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL] options:0 error:&error];
    //     if (data && !error) {
    //         return data;
    //     }
    // }

    return transaction.transactionReceipt;
#pragma clang diagnostic pop
}
#endif