Package com.adyen.service
Class Payment
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.Payment
-
public class Payment extends Service
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ModificationResultadjustAuthorisation(AdjustAuthorisationRequest adjustAuthorisationRequest)POST /adjustAuthorisation API callPaymentResultauthorise(PaymentRequest paymentRequest)POST /authorise API callPaymentResultauthorise(PaymentRequest paymentRequest, RequestOptions requestOptions)PaymentResultauthorise3D(PaymentRequest3d paymentRequest3d)POST /authorise3d API callPaymentResultauthorise3DS2(PaymentRequest3ds2 paymentRequest3ds2)POST /authorise3ds2 API callModificationResultcancel(CancelRequest cancelRequest)POST /cancel API callModificationResultcancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest)POST /cancelOrRefund API callModificationResultcapture(CaptureRequest captureRequest)POST /capture API callModificationResultdonate(DonationRequest donationRequest)POST /donate API callAuthenticationResultResponsegetAuthenticationResult(AuthenticationResultRequest authenticationResultRequest)POST /getAuthenticationResult API callModificationResultrefund(RefundRequest refundRequest)POST /refund API callThreeDS2ResultResponseretrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest)Deprecated.Use /getAuthenticationResult insteadModificationResulttechnicalCancel(TechnicalCancelRequest technicalCancelRequest)POST /technicalCancel API callModificationResultvoidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest)POST /voidPendingRefund API call-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
Payment
public Payment(Client client)
-
-
Method Detail
-
authorise
public PaymentResult authorise(PaymentRequest paymentRequest) throws ApiException, IOException
POST /authorise API call- Parameters:
paymentRequest- paymentRequest- Returns:
- PaymentResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
authorise
public PaymentResult authorise(PaymentRequest paymentRequest, RequestOptions requestOptions) throws ApiException, IOException
- Throws:
ApiExceptionIOException
-
authorise3D
public PaymentResult authorise3D(PaymentRequest3d paymentRequest3d) throws Exception
POST /authorise3d API call- Parameters:
paymentRequest3d- authorise3D- Returns:
- PaymentResult
- Throws:
Exception- Exception
-
authorise3DS2
public PaymentResult authorise3DS2(PaymentRequest3ds2 paymentRequest3ds2) throws Exception
POST /authorise3ds2 API call- Parameters:
paymentRequest3ds2- PaymentRequest3ds2- Returns:
- PaymentResult
- Throws:
Exception- Exception
-
retrieve3ds2Result
@Deprecated public ThreeDS2ResultResponse retrieve3ds2Result(ThreeDS2ResultRequest threeDS2ResultRequest) throws Exception
Deprecated.Use /getAuthenticationResult insteadPOST /retrieve3ds2Result API call- Parameters:
threeDS2ResultRequest- PaymentRequest3ds2- Returns:
- PaymentResult
- Throws:
Exception- Exception
-
getAuthenticationResult
public AuthenticationResultResponse getAuthenticationResult(AuthenticationResultRequest authenticationResultRequest) throws IOException, ApiException
POST /getAuthenticationResult API call- Parameters:
authenticationResultRequest- AuthenticationResultRequest- Returns:
- AuthenticationResultResponse
- Throws:
ApiException- ApiExceptionIOException- IOException
-
capture
public ModificationResult capture(CaptureRequest captureRequest) throws IOException, ApiException
POST /capture API call- Parameters:
captureRequest- CaptureRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
cancel
public ModificationResult cancel(CancelRequest cancelRequest) throws IOException, ApiException
POST /cancel API call- Parameters:
cancelRequest- CancelRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
refund
public ModificationResult refund(RefundRequest refundRequest) throws IOException, ApiException
POST /refund API call- Parameters:
refundRequest- RefundRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
cancelOrRefund
public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest) throws IOException, ApiException
POST /cancelOrRefund API call- Parameters:
cancelOrRefundRequest- CancelOrRefundRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
technicalCancel
public ModificationResult technicalCancel(TechnicalCancelRequest technicalCancelRequest) throws IOException, ApiException
POST /technicalCancel API call- Parameters:
technicalCancelRequest- TechnicalCancelRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
adjustAuthorisation
public ModificationResult adjustAuthorisation(AdjustAuthorisationRequest adjustAuthorisationRequest) throws IOException, ApiException
POST /adjustAuthorisation API call- Parameters:
adjustAuthorisationRequest- AdjustAuthorisationRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
donate
public ModificationResult donate(DonationRequest donationRequest) throws IOException, ApiException
POST /donate API call- Parameters:
donationRequest- DonationRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
voidPendingRefund
public ModificationResult voidPendingRefund(VoidPendingRefundRequest voidPendingRefundRequest) throws IOException, ApiException
POST /voidPendingRefund API call- Parameters:
voidPendingRefundRequest- VoidPendingRefundRequest- Returns:
- ModificationResult
- Throws:
ApiException- ApiExceptionIOException- IOException
-
-