yoomoney / yookassa-android-sdk

This library allows implementing payment acceptance into mobile apps on Android. It works as an extension to the YooMoney API.
https://yookassa.ru/developers/payment-forms/android-sdk
MIT License
40 stars 22 forks source link

Не отображаются способы оплаты #71

Closed vsevolod-sp closed 3 years ago

vsevolod-sp commented 3 years ago

Код вызова формы:

UiParameters uiParameters = new UiParameters(false, new ColorScheme(config.getAttributeColor(R.attr.colorAccent)));
TestParameters testParameters = new TestParameters(true, false, null);

Set<PaymentMethodType> paymentMethodTypes = new HashSet<>();
            paymentMethodTypes.add(PaymentMethodType.YOO_MONEY);
            paymentMethodTypes.add(PaymentMethodType.BANK_CARD);
            paymentMethodTypes.add(PaymentMethodType.SBERBANK);

            PaymentParameters paymentParameters = new PaymentParameters(
                    new Amount(new BigDecimal(pagePromo.getMethods().get(pos).getPrice()), Currency.getInstance("RUB")),
                    pagePromo.getMethods().get(pos).getTitle(),
                    pagePromo.getMethods().get(pos).getDescription(),
                    Config.YC_CLI_KEY,
                    Config.YC_SHOP_ID,
                    SavePaymentMethod.ON,
                    paymentMethodTypes
            );

            Intent i = Checkout.createTokenizeIntent(this, paymentParameters, testParameters, uiParameters);
            startActivityForResult(i, REQUEST_CODE_TOKENIZE);

В логах заметил ошибки:

D/YooKassa.SDK: Load payment option list: error: null
    a.a.a.a.a.e.g.f
        at a.a.a.a.a.e.g.b.a(:17)
        at a.a.a.a.a.e.g.b.invoke(Unknown Source:2)
        at a.a.a.a.a.a.s0.i0.invoke(Unknown Source:2)
        at a.a.a.a.a.d.k$b.invoke(:7)
        at a.a.a.a.a.d.c.run(Unknown Source:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

D/YooKassa.SDK: Load payment option list: viewModel: PaymentOptionListFailViewModel(error=Нет доступных способов оплаты, showLogo=false)

iskandarshabaev commented 3 years ago

Здравствуйте. Напишите пожалуйста нам на почту с этой проблемой, поможем оперативно разобраться b2b_support@yoomoney.ru