Listing Receipts

James Goodwin edited this page Mar 12, 2017 · 3 revisions
  1. Initialize the Judo SDK with your account API token and secret:
Judo judo = new Judo.Builder()
    .setApiToken("<TOKEN>")
    .setApiSecret("<SECRET>")
    .setEnvironment(Judo.SANDBOX)
    .build();
  1. Get an instance of the JudoApiService from the Judo object:

    JudoApiService apiService = judo.getApiService(this)
  2. Use the JudoApiService to list receipts:

    apiService.paymentReceipts(50, 0, "time-descending")
       .subscribeOn(Schedulers.io())
       .observeOn(AndroidSchedulers.mainThread())
       .subscribe(new Action1<Receipts>() {
          @Override
          public void call(Receipts receipts) {
             receipts.getResults(); // show receipts
          }
       });
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.