Examples of DoDirectPaymentRequestType


Examples of PayPalAPI.api.ebay.DoDirectPaymentRequestType

      _request.setVersion(CURRENT_VERSION);
    }
   
    // Add a ButtonSource value.
    if (_request instanceof DoDirectPaymentRequestType) {
      DoDirectPaymentRequestType dpReq = (DoDirectPaymentRequestType) _request;
      if (dpReq.getDoDirectPaymentRequestDetails() == null) {
        dpReq.setDoDirectPaymentRequestDetails(new DoDirectPaymentRequestDetailsType());
      }
      if (dpReq.getDoDirectPaymentRequestDetails().getPaymentDetails() == null) {
        dpReq.getDoDirectPaymentRequestDetails().setPaymentDetails(new PaymentDetailsType());
      }
      if (LOG.isDebugEnabled()) {
        LOG.debug("Setting ButtonSource to [" + JavaCommerce.VERSION + "]");
      }
      dpReq.getDoDirectPaymentRequestDetails().getPaymentDetails().setButtonSource(JavaCommerce.VERSION);
    }
    else if (_request instanceof DoExpressCheckoutPaymentRequestType) {
      DoExpressCheckoutPaymentRequestType ecReq = (DoExpressCheckoutPaymentRequestType) _request;
      if (ecReq.getDoExpressCheckoutPaymentRequestDetails() == null) {
        ecReq.setDoExpressCheckoutPaymentRequestDetails(new DoExpressCheckoutPaymentRequestDetailsType());
View Full Code Here

Examples of PayPalAPI.api.ebay.DoDirectPaymentRequestType

   * @throws RemoteException
   * @throws ServiceException
   * @throws SOAPException
   */
  public static final DoDirectPaymentResponseType doDirectPayment(DoDirectPaymentRequestDetailsType _request, APICredential _credentials) throws RemoteException {
    DoDirectPaymentRequestType request = new DoDirectPaymentRequestType();
    request.setDoDirectPaymentRequestDetails(_request);
    request.setVersion(CURRENT_VERSION);
    return doDirectPayment(request, _credentials);
  }
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.