Examples of DoDirectPaymentResponseType


Examples of PayPalAPI.api.ebay.DoDirectPaymentResponseType

   * @throws SOAPException
   */
  public static final DoDirectPaymentResponseType doDirectPayment(DoDirectPaymentRequestType _request, APICredential _credentials) throws RemoteException {
    long startTime = System.currentTimeMillis();
    validateRequest(_request);
    DoDirectPaymentResponseType response = getAPIAAInterface(_credentials).doDirectPayment(new DoDirectPaymentReq(_request));
    processResponse(response);
    long endTime = System.currentTimeMillis();
    logMessage(startTime, endTime, response, "API.doDirectPayment");
    return response;
  }
View Full Code Here

Examples of PayPalAPI.api.ebay.DoDirectPaymentResponseType

      PostMethod post = new PostMethod(getApiAAUrl().toExternalForm());
      post.addParameters(doDirectPaymentRequest.getDoDirectPaymentRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new DoDirectPaymentResponseType(post.getResponseBodyAsStream());
        }
        else {
          throw new RemoteException("Error processing request [" + post.getStatusCode() + ": " + post.getStatusText() + "]");
        }
      } catch (HttpException e) {
View Full Code Here

Examples of PayPalAPI.api.ebay.DoDirectPaymentResponseType

      writeException("DP-1003", "Error executing DoDirectPayment API call", null, e, _response);
      return;
    }
    DoDirectPaymentRequestDetailsType request = APIUtil.buildDoDirectPaymentRequestDetails(_request);
    try {
      DoDirectPaymentResponseType response = API.doDirectPayment(request, credentials);
      if (LOG.isDebugEnabled()) {
        LOG.debug("DoDirectPayment API call returned [" + response.getAck() + "], building XML.");
      }
      writeObject(response, _response);
      if (LOG.isDebugEnabled()) {
        LOG.debug("XML written to Output Stream");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.