This is a demo of how in-app billing extension works in Air apps. using this extension is very easy for an Air developer. download it and check out the buttons. it will initialize the extension and show you how the extension will work in your app.
we have also built a refund method for the extension which you can use optionally and it will let your users fill in a little form and submit it! you will receive an email with the request of your client wanting to refund a specific in-app product.
use it like this:
// initialize it first
_ex = new Google(onInitSuccess, onInitFailed, "PublicKey", true);
// continue with it on a successfull initialization
function onInitSuccess():void
{
// add listeners for the in-app-billing
_ex.addEventListener(GoogleEvent.PURCHASE_STATE_CHANGED, onPurchaseStateChanged);
_ex.addEventListener(GoogleEvent.REQUEST_PURCHASE_RESPONSE, onPurchaseRequestResponse);
_ex.addEventListener(GoogleEvent.REFUND_WINDOW, onRefundWindow);
_ex.addEventListener(GoogleEvent.ERROR, onERROR);
_ex.addEventListener(GoogleEvent.RESULT_OK, onResultOk);
_ex.addEventListener(GoogleEvent.RESULT_USER_CANCELED, onResultUserCanceled);
_ex.addEventListener(GoogleEvent.RESULT_SERVICE_UNAVAILABLE, onResultServiceUnavailable);
_ex.addEventListener(GoogleEvent.RESULT_BILLING_UNAVAILABLE, onResultBillingUnavailable);
_ex.addEventListener(GoogleEvent.RESULT_ITEM_UNAVAILABLE, onResultItemUnavailable);
_ex.addEventListener(GoogleEvent.RESULT_DEVELOPER_ERROR, onResultDeveloperError);
_ex.addEventListener(GoogleEvent.RESULT_ERROR, onResultError);
// request a Fake purchase for developing purpose!
_ex.requestPurchase(Google.FAKE_PURCHASE, "");
// open the refund dialog!
_ex.requestRefund("http://site.com/refund/", "itemId", "itemOrder");
}
there are many other methods for you to work with the extension.
please read here: http://myappsnippet.com/in-app-billing-adobe-air-native-extension-refund-manager/
免費玩in-app-billing Air Extension APP玩免費
免費玩in-app-billing Air Extension App
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 1.1 App下載 | 免費 | 1970-01-01 | 2015-04-23 |