title: Application fees error in Stripe Terminal (Direct charge)
body: <p>I want to collect application fees in direct charge concept with Stripe Terminal but Am getting error&quot; Can only apply an application_fee_amount when the PaymentIntent is attempting a direct payment (using an OAuth key or Stripe-Account header)&quot;. when i use destination charge its work fine but i want to use direct charge. below code is for destination code.Please help me how i can get application fee in direct charge.</p>
  <pre><code>public void paymentIntent() {
      PaymentIntentParameters params = new PaymentIntentParameters.Builder()
              .setAmount(usdamount)
              .setCurrency(&quot;usd&quot;)
              .setApplicationFeeAmount(usdapplicationfee)
              .setDescription(&quot;Order#&quot; + orderref)
              .setMetadata(initialMetadata)
              .setOnBehalfOf(accountid)
              .setTransferDataDestination(accountid)
              .build();
      Terminal.getInstance().createPaymentIntent(params, new PaymentIntentCallback() {
          @Override
          public void onSuccess(PaymentIntent paymentIntent) {
              collecetpayment(paymentIntent);
          }
  
          @Override
          public void onFailure(TerminalException exception) {
              accounterror(exception.getErrorMessage(), exception.getMessage());
              try {
                  Thread.sleep(5000);
              } catch (InterruptedException e) {
                  e.printStackTrace();
              }
              finish();
          }
  
      });
  }
  </code></pre>