为什么没有收到柔道android付费的Wallet.Payments.loadMaskedWallet?

时间:2017-06-10 10:49:27

标签: android android-pay

我在Android应用程序中尝试android judopay。

1.我的手机没有根据。

2.Android付费应用已安装在我的手机和注册卡上。

3.Apk在Google Play上发布,我创建了带有签名APK的shaa的Oauth证书

4.i使用下面的代码。

private void createWalletFragment() {
    WalletFragmentStyle walletStyle = new WalletFragmentStyle()
            .setBuyButtonText(WalletFragmentStyle.BuyButtonText.LOGO_ONLY)
            .setBuyButtonAppearance(WalletFragmentStyle.BuyButtonAppearance.ANDROID_PAY_LIGHT_WITH_BORDER)
            .setBuyButtonWidth(WalletFragmentStyle.Dimension.MATCH_PARENT);

    WalletFragmentOptions options = WalletFragmentOptions.newBuilder()
            .setEnvironment(ENVIRONMENT)
            .setFragmentStyle(walletStyle)
            .setTheme(WalletConstants.THEME_DARK)
            //.setMode(WalletFragmentMode.SELECTION_DETAILS)
            .build();

    PaymentMethodTokenizationParameters parameters = PaymentMethodTokenizationParameters.newBuilder()
            .setPaymentMethodTokenizationType(PaymentMethodTokenizationType.NETWORK_TOKEN)
            .addParameter("publicKey", getString(R.string.public_key))
            .build();

    walletFragment = SupportWalletFragment.newInstance(options);

    MaskedWalletRequest walletRequest = MaskedWalletRequest.newBuilder()
            .setMerchantName(getString(R.string.app_name))
            .setCurrencyCode(CURRENCY)
            .setEstimatedTotalPrice(AMOUNT)
            .setPaymentMethodTokenizationParameters(parameters)
            .setCart(Cart.newBuilder()
                    .setCurrencyCode(CURRENCY)
                    .setTotalPrice(AMOUNT)
                    .build())
            .build();

    WalletFragmentInitParams startParams = WalletFragmentInitParams.newBuilder()
            .setMaskedWalletRequest(walletRequest)
            .setMaskedWalletRequestCode(MASKED_WALLET_REQUEST)
            .build();      
    //skip purchase button process
     Wallet.Payments.loadMaskedWallet (googleApiClient, walletRequest ,MASKED_WALLET_REQUEST);
}

已经检查了googleapiclient,并且我成功调用了loadMaskedWallet函数。

但是我永远不会在onActivityResult()函数上收到任何回复。

为什么没有收到柔道android付费的Wallet.Payments.loadMaskedWallet?

0 个答案:

没有答案