code: @NonNull
      public static SourceParams createP24Params(
              @IntRange(from = 0) long amount,
              @NonNull String currency,
              @Nullable String name,
              @NonNull String email,
              @NonNull String returnUrl) {
          final SourceParams params = new SourceParams()
                  .setAmount(amount)
                  .setType(Source.P24)
                  .setCurrency(currency)
                  .setRedirect(createSimpleMap(FIELD_RETURN_URL, returnUrl));
  
          final AbstractMap<String, Object> ownerMap = new HashMap<>();
          ownerMap.put(FIELD_NAME, name);
          ownerMap.put(FIELD_EMAIL, email);
          removeNullAndEmptyParams(ownerMap);
          if (ownerMap.keySet().size() > 0) {
              params.setOwner(ownerMap);
          }
  
          return params;
      }
docs: Create parameters necessary for creating a P24 source.
  
  @param amount A positive integer in the smallest currency unit representing the amount to
  charge the customer (e.g., 1099 for a €10.99 payment).
  @param currency `eur` or `pln` (P24 payments must be in either Euros or Polish Zloty).
  @param name The name of the account holder (optional).
  @param email The email address of the account holder.
  @param returnUrl The URL the customer should be redirected to after the authorization
  process.
  @return a {@link SourceParams} that can be used to create a P24 source
  
  @see <a href="https://stripe.com/docs/sources/p24">https://stripe.com/docs/sources/p24</a>