Stripe Connect Android

I am creating an Android application that pays someone. I researched Stripe Connect, and it has an API and thread for a website that requires a link button to display with a strip, and also requires a uri redirect.

However, I can’t find anything for Android that allows me to show the connect button and invite the user to create or connect a stripe account on the Android device. Should I use web browsing for this, or is there an even more elegant way to do this?

+4
source share
2 answers

As far as I know, there is no native SDK for mobile connection to the strip. I made a web search route for Android. It was trivial, but I agree that I wanted a more elegant solution.

For those who are wondering how to do this (since I cannot find any document there), you are here:

+2

, , , , 2 stripe Android, Stripe API, ...

-, jar , . ,

Stripe.apiKey = "sk_test_xxxxxxxxxxxxxxxxxxxxxxxx";
RequestOptions requestOptions = RequestOptions.builder()
                                 .setApiKey("sk_test_xxxxxxxxxxxxxxxxxxxxxxxx").build();
  • , create() Account

    Map<String, Object> accountParams = new HashMap<String, Object>();
    accountParams.put("managed", false);
    accountParams.put("country", "US");
    accountParams.put("email", "some@email.com");
    
    try {
       Account create = Account.create(accountParams, null);
    } catch (AuthenticationException e) {
       e.printStackTrace();
    } catch (InvalidRequestException e) {
       e.printStackTrace();
    } catch (APIConnectionException e) {
       e.printStackTrace();
    } catch (CardException e) {
       e.printStackTrace();
    } catch (APIException e) {
       e.printStackTrace();
    }
    
  • , , retrieve()

    try {
       Account detail = Account.retrieve("acct_xxxxxxxxxxxxxx", null);
    } catch (AuthenticationException e) {
       e.printStackTrace();
    } catch (InvalidRequestException e) {
       e.printStackTrace();
    } catch (APIConnectionException e) {
       e.printStackTrace();
    } catch (CardException e) {
       e.printStackTrace()
    } catch (APIException e) {
       e.printStackTrace();
    }
    

Stripe Android API, , , , ..

0

Source: https://habr.com/ru/post/1584970/


All Articles