Latest stable release of the Phone iOS In-App-Purchase plugin is available for download here.
As usual, the plugin’s version number is aligned with PhoneGap’s version number. All this means for you is that it is safe to use with PhoneGap or Cordova 3.4
All errors reported by the plugin are now guaranteed to be one of those:
storekit.ERR_SETUP - Cannot setup the plugin.
storekit.ERR_LOAD - Cannot load IAPs from Apple servers.
storekit.ERR_PURCHASE - Failed to purchase the item
storekit.ERR_LOAD_RECEIPTS - Cannot load receipts.
storekit.ERR_CLIENT_INVALID - Client doesn't support IAP.
storekit.ERR_PAYMENT_CANCELLED - User cancelled the payment.
storekit.ERR_PAYMENT_INVALID - Problem with payment.
storekit.ERR_PAYMENT_NOT_ALLOWED - Payment not allowed.
storekit.ERR_UNKNOWN - Unknown error.
The plugin now verifies that the user is allowed to perform payment, using SKPaymentQueue’s canMakePayments static method. An “ERR_SETUP” error is generated during initialization if this returns false. This should be treated as if In-App-Purchases were not available.
The new option “noAutoFinish” that was added in the previous release added a few bugs, mainly with the handling of failed transactions. Hopefully, all of those have been fixed with this release.
Thanks to Maxwell Moore that proof read the whole Objective C code and spotted some nasty issues, also to Boston Dell-Vandenberg and Masonicboom for submitting bug fixes.