R
R
Rasul Kakushev2017-07-03 13:51:51
Android
Rasul Kakushev, 2017-07-03 13:51:51

Android yandex money api not working. What's the matter?

I registered the application in yandex.money, got the client id. Next, I wrote an example that is on github:. I replaced CLIENT_ID = "[your_client_id]" with the one I received during registration. But when I try to run the code, I see this picture:

spoiler
3bb88b053f3d4522b279645d242d7049.PNG
. What is the matter and what am I doing wrong
Here is the activity call code:
HashMap<String, String> params = new HashMap<>();
        params.put("shopId", data.optString("shopId"));
        params.put("scid", data.optString("scId"));
        params.put("sum", data.optString("sum"));
        params.put("customerNumber", data.optString("customer"));
        params.put("paymentType", data.optString("pay_type"));
        params.put("saleOrderId", data.optString("number"));
        Intent intent = PaymentActivity.getBuilder(getActivity())
                .setPaymentParams(new ShopParams(data.optString("scId"), params))
                .setClientId(CLIENT_ID)
                .build();
        startActivityForResult(intent, ResponseUtils.PAY);

The error ru.yandex.money.android.fragments.ErrorFragment appears in the logs: error=TECHNICAL_ERROR,status=REFUSED

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YooMoneyHelp, 2017-07-04
@Raserad

Let's help you figure it out. Please send details to [email protected] Please include a link to this post with your email.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question