code: public Payment createWithToken( String token ) {
      ValidationUtils.validatesToken( token );
  
      ParameterMap<String, String> params = new ParameterMap<String, String>();
      params.add( "token", token );
  
      return RestfulUtils.create( PaymentService.PATH, params, Payment.class, super.httpClient );
    }
docs: Creates a credit card or direct debit {@link Payment} from a given token.
  @param token
  Token generated by PAYMILL Bridge, which represents a credit card or direct debit.
  @return New PAYMILL {@link Payment}.