Answer the question
In order to leave comments, you need to log in
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:
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);
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question