Search in sources :

Example 1 with PaymentDetailsResponse

use of com.paypal.svcs.types.ap.PaymentDetailsResponse in project OpenOLAT by OpenOLAT.

the class PaypalManagerImpl method paymentDetails.

@Override
public PaymentDetailsResponse paymentDetails(String key) {
    try {
        PaymentDetailsRequest paydetailReq = new PaymentDetailsRequest();
        paydetailReq.setPayKey(key);
        paydetailReq.setRequestEnvelope(getAppRequestEnvelope());
        AdaptivePaymentsService apd = new AdaptivePaymentsService(getAccountProperties());
        PaymentDetailsResponse paydetailsResp = apd.paymentDetails(paydetailReq);
        return paydetailsResp;
    } catch (Exception fe) {
        log.error("", fe);
        return null;
    }
}
Also used : PaymentDetailsResponse(com.paypal.svcs.types.ap.PaymentDetailsResponse) PaymentDetailsRequest(com.paypal.svcs.types.ap.PaymentDetailsRequest) AdaptivePaymentsService(com.paypal.svcs.services.AdaptivePaymentsService) OAuthException(com.paypal.sdk.exceptions.OAuthException) SSLConfigurationException(com.paypal.exception.SSLConfigurationException) InvalidResponseDataException(com.paypal.exception.InvalidResponseDataException) UnsupportedEncodingException(java.io.UnsupportedEncodingException) InvalidCredentialException(com.paypal.exception.InvalidCredentialException) HttpErrorException(com.paypal.exception.HttpErrorException) MissingCredentialException(com.paypal.exception.MissingCredentialException) IOException(java.io.IOException) ClientActionRequiredException(com.paypal.exception.ClientActionRequiredException)

Example 2 with PaymentDetailsResponse

use of com.paypal.svcs.types.ap.PaymentDetailsResponse in project openolat by klemens.

the class PaypalManagerImpl method paymentDetails.

@Override
public PaymentDetailsResponse paymentDetails(String key) {
    try {
        PaymentDetailsRequest paydetailReq = new PaymentDetailsRequest();
        paydetailReq.setPayKey(key);
        paydetailReq.setRequestEnvelope(getAppRequestEnvelope());
        AdaptivePaymentsService apd = new AdaptivePaymentsService(getAccountProperties());
        PaymentDetailsResponse paydetailsResp = apd.paymentDetails(paydetailReq);
        return paydetailsResp;
    } catch (Exception fe) {
        log.error("", fe);
        return null;
    }
}
Also used : PaymentDetailsResponse(com.paypal.svcs.types.ap.PaymentDetailsResponse) PaymentDetailsRequest(com.paypal.svcs.types.ap.PaymentDetailsRequest) AdaptivePaymentsService(com.paypal.svcs.services.AdaptivePaymentsService) OAuthException(com.paypal.sdk.exceptions.OAuthException) SSLConfigurationException(com.paypal.exception.SSLConfigurationException) InvalidResponseDataException(com.paypal.exception.InvalidResponseDataException) UnsupportedEncodingException(java.io.UnsupportedEncodingException) InvalidCredentialException(com.paypal.exception.InvalidCredentialException) HttpErrorException(com.paypal.exception.HttpErrorException) MissingCredentialException(com.paypal.exception.MissingCredentialException) IOException(java.io.IOException) ClientActionRequiredException(com.paypal.exception.ClientActionRequiredException)

Aggregations

ClientActionRequiredException (com.paypal.exception.ClientActionRequiredException)2 HttpErrorException (com.paypal.exception.HttpErrorException)2 InvalidCredentialException (com.paypal.exception.InvalidCredentialException)2 InvalidResponseDataException (com.paypal.exception.InvalidResponseDataException)2 MissingCredentialException (com.paypal.exception.MissingCredentialException)2 SSLConfigurationException (com.paypal.exception.SSLConfigurationException)2 OAuthException (com.paypal.sdk.exceptions.OAuthException)2 AdaptivePaymentsService (com.paypal.svcs.services.AdaptivePaymentsService)2 PaymentDetailsRequest (com.paypal.svcs.types.ap.PaymentDetailsRequest)2 PaymentDetailsResponse (com.paypal.svcs.types.ap.PaymentDetailsResponse)2 IOException (java.io.IOException)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)2