Search in sources :

Example 6 with AdaptivePaymentsService

use of com.paypal.svcs.services.AdaptivePaymentsService 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)6 HttpErrorException (com.paypal.exception.HttpErrorException)6 InvalidCredentialException (com.paypal.exception.InvalidCredentialException)6 InvalidResponseDataException (com.paypal.exception.InvalidResponseDataException)6 MissingCredentialException (com.paypal.exception.MissingCredentialException)6 SSLConfigurationException (com.paypal.exception.SSLConfigurationException)6 OAuthException (com.paypal.sdk.exceptions.OAuthException)6 AdaptivePaymentsService (com.paypal.svcs.services.AdaptivePaymentsService)6 IOException (java.io.IOException)6 UnsupportedEncodingException (java.io.UnsupportedEncodingException)6 ConvertCurrencyRequest (com.paypal.svcs.types.ap.ConvertCurrencyRequest)2 ConvertCurrencyResponse (com.paypal.svcs.types.ap.ConvertCurrencyResponse)2 CurrencyCodeList (com.paypal.svcs.types.ap.CurrencyCodeList)2 CurrencyConversionList (com.paypal.svcs.types.ap.CurrencyConversionList)2 CurrencyList (com.paypal.svcs.types.ap.CurrencyList)2 PayRequest (com.paypal.svcs.types.ap.PayRequest)2 PayResponse (com.paypal.svcs.types.ap.PayResponse)2 PaymentDetailsRequest (com.paypal.svcs.types.ap.PaymentDetailsRequest)2 PaymentDetailsResponse (com.paypal.svcs.types.ap.PaymentDetailsResponse)2 Receiver (com.paypal.svcs.types.ap.Receiver)2