2

10個のIn-App製品を使用してAndroidIn-Appを開発しています。AndroidBillingライブラリ、Googleテストアカウント、および製品IDの設定を完全に統合していますが、[Accept&Buy]ボタンをクリックすると次のエラーが発生します。

your order could not be processed please try again.

このエラーの理由は何ですか。私が間違っていることは何ですか?

public void onClick(View v){ 
    if(BillingController.isPurchased(context, MainActivity.ITEM_ID[position])) { 
        String msg=(String) holder.txtViewname.getText(); 
        Intent intent= new Intent(context,RecipeMenu.class); 
        intent.putExtra("name", msg); 
        intent.putExtra("id", position); 
        context.startActivity(intent); } 
    else{ 
        BillingController.requestPurchase(context, MainActivity.ITEM_ID[position], true /* confirm */); 
    } 
} 
}); 
4

1 に答える 1

1

Androidは、これと同じアプリ内課金の例の1つの例を提供します。Androidアプリ内を参照してください。そしてその名前はmarket_billingです。android-sdk / extras / google/market_billingで見つけることができます。

于 2012-08-07T05:14:08.960 に答える