コード例 #1
0
  public PaymentGatewayPlanetauthorize(AppProperties props) {
    m_sCommerceID = props.getProperty("payment.commerceid");

    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword =
        cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));

    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
  }
コード例 #2
0
  public static PaymentGateway getPaymentGateway(AppProperties props) {

    String sReader = props.getProperty("payment.gateway");

    if ("external".equals(sReader)) {
      return new PaymentGatewayExt();
    } else if ("PayPoint / SecPay".equals(sReader)) {
      return new PaymentGatewayPayPoint(props);
    } else if ("AuthorizeNet".equals(sReader)) {
      return new PaymentGatewayAuthorizeNet(props);
    } else if ("La Caixa (Spain)".equals(sReader)) {
      return new PaymentGatewayCaixa(props);
    } else if ("Planetauthorize".equals(sReader)) {
      return new PaymentGatewayPlanetauthorize(props);
    } else if ("Firs Data / LinkPoint / YourPay".equals(sReader)) {
      return new PaymentGatewayLinkPoint(props);
    } else if ("PaymentsGateway.net".equals(sReader)) {
      return new PaymentGatewayPGNET(props);
    } else {
      return null;
    }
  }