public class DefaultCisClientPaymentService extends java.lang.Object implements CisClientPaymentService
CisClientPaymentService| Constructor and Description |
|---|
DefaultCisClientPaymentService() |
| Modifier and Type | Method and Description |
|---|---|
<any> |
addCustomerProfile(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.lang.String documentId,
CisExternalPaymentRequest cisExternalPayment)
Add a customer profile
|
CisPaymentTransactionResult |
authorizeWithProfile(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI profileLocation,
CisPaymentAuthorization cisPaymentAuthorization)
Requests an authorization of a payment
|
CisPaymentTransactionResult |
capture(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI authorizationLocation,
java.lang.String transactionId,
CisPaymentRequest paymentRequest)
Captures a payment based on the given properties
|
java.lang.String |
deleteCustomerProfile(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI profileLocation)
Deletes a given customer profile
|
protected java.lang.String |
extractLastUriParam(java.net.URI uri)
Extracts the last part of the URI
|
protected PaymentClient |
getCisPaymentClient() |
CisPaymentTransactionResult |
handleExternalAuthorization(java.lang.String xCisClientRef,
java.lang.String tenantId,
CisExternalPaymentRequest cisExternalPayment)
Requests a payment authorization
|
CisTokenizedPaymentTransactionResult |
initPaymentSession(java.lang.String xCisClientRef,
java.lang.String tenantId,
CisPaymentSessionInitRequest cisPaymentSessionInitRequest)
Initialize the payment session
|
CisTokenizedPaymentTransactionResult |
paymentOrderSetup(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI authorizationLocation,
CisTokenizedPaymentAuthorization cisTokenizedPaymentAuthorization)
Setup order payment
|
boolean |
ping(java.lang.String xCisClientRef,
java.lang.String tenantId)
Checks if service is functioning and connecting with current credentials.
|
<any> |
pspUrl(java.lang.String xCisClientRef,
java.lang.String tenantId)
Retrieves the payment service url for a given client and tenant
|
CisPaymentTransactionResult |
refund(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI captureLocation,
java.lang.String transactionId,
CisPaymentRequest paymentRequest)
Refunds a payment transaction
|
CisPaymentTransactionResult |
reverse(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI authorizationLocation,
java.lang.String transactionId,
CisPaymentRequest paymentRequest)
Reverses a payment based on the given properties
|
void |
setCisPaymentClient(PaymentClient cisPaymentClient) |
CisTokenizedPaymentTransactionResult |
tokenizedPaymentAuthorization(java.lang.String xCisClientRef,
java.lang.String tenantId,
CisTokenizedPaymentAuthorization cisTokenizedPaymentAuthorization)
Tokenized Payment Authorization
|
CisTokenizedPaymentTransactionResult |
tokenizedPaymentCapture(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.lang.String authGroupId,
java.lang.String authId,
CisTokenizedPaymentCapture cisTokenizedPaymentCapture)
Tokenized Payment Capture
|
CisTokenizedPaymentTransactionResult |
tokenizedPaymentRefund(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.lang.String authGroupId,
java.lang.String authId,
CisTokenizedPaymentRefund cisTokenizedPaymentRefund)
Tokenized Payment Refund
|
CisTokenizedPaymentTransactionResult |
tokenizedPaymentReverse(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.lang.String authGroupId,
java.lang.String authId,
CisTokenizedPaymentReverse cisTokenizedPaymentReverse)
Tokenized Payment Reverse
|
CisPaymentProfileResult |
updateCustomerProfile(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI profileLocation,
CisPaymentProfileRequest cisPaymentProfileRequest)
Updates a customer profile
|
public <any> pspUrl(java.lang.String xCisClientRef,
java.lang.String tenantId)
CisClientPaymentServicepspUrl in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierpublic CisPaymentTransactionResult handleExternalAuthorization(java.lang.String xCisClientRef, java.lang.String tenantId, CisExternalPaymentRequest cisExternalPayment)
CisClientPaymentServicehandleExternalAuthorization in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifiercisExternalPayment - the external payment requestpublic CisPaymentTransactionResult authorizeWithProfile(java.lang.String xCisClientRef, java.lang.String tenantId, java.net.URI profileLocation, CisPaymentAuthorization cisPaymentAuthorization)
CisClientPaymentServiceauthorizeWithProfile in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierprofileLocation - the URI of the profile to be authorizedcisPaymentAuthorization - the payment authorization to be authorizedpublic CisPaymentTransactionResult capture(java.lang.String xCisClientRef, java.lang.String tenantId, java.net.URI authorizationLocation, java.lang.String transactionId, CisPaymentRequest paymentRequest)
CisClientPaymentServicecapture in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifiertransactionId - the transaction identifier to be capturedpaymentRequest - the corresponding payment requestpublic CisPaymentTransactionResult reverse(java.lang.String xCisClientRef, java.lang.String tenantId, java.net.URI authorizationLocation, java.lang.String transactionId, CisPaymentRequest paymentRequest)
CisClientPaymentServicereverse in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierauthorizationLocation - the location of the granted authorizationtransactionId - the transaction identifier to be reversedpaymentRequest - the corresponding payment requestpublic CisPaymentTransactionResult refund(java.lang.String xCisClientRef, java.lang.String tenantId, java.net.URI captureLocation, java.lang.String transactionId, CisPaymentRequest paymentRequest)
CisClientPaymentServicerefund in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifiercaptureLocation - the URI of the captured locationtransactionId - the transaction identifier to be reversedpaymentRequest - the corresponding payment requestpublic <any> addCustomerProfile(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.lang.String documentId,
CisExternalPaymentRequest cisExternalPayment)
CisClientPaymentServiceaddCustomerProfile in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierdocumentId - the document identifiercisExternalPayment - the external payment requestpublic CisPaymentProfileResult updateCustomerProfile(java.lang.String xCisClientRef, java.lang.String tenantId, java.net.URI profileLocation, CisPaymentProfileRequest cisPaymentProfileRequest)
CisClientPaymentServiceupdateCustomerProfile in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierprofileLocation - the URI of the profile locationcisPaymentProfileRequest - the payment profile requestpublic java.lang.String deleteCustomerProfile(java.lang.String xCisClientRef,
java.lang.String tenantId,
java.net.URI profileLocation)
CisClientPaymentServicedeleteCustomerProfile in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierprofileLocation - the URI of the profile to deletepublic CisTokenizedPaymentTransactionResult initPaymentSession(java.lang.String xCisClientRef, java.lang.String tenantId, CisPaymentSessionInitRequest cisPaymentSessionInitRequest)
CisClientPaymentServiceinitPaymentSession in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifiercisPaymentSessionInitRequest - the payment session requestCisTokenizedPaymentTransactionResultpublic CisTokenizedPaymentTransactionResult paymentOrderSetup(java.lang.String xCisClientRef, java.lang.String tenantId, java.net.URI authorizationLocation, CisTokenizedPaymentAuthorization cisTokenizedPaymentAuthorization)
CisClientPaymentServicepaymentOrderSetup in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierauthorizationLocation - the URI of the authorizationCisTokenizedPaymentTransactionResultpublic CisTokenizedPaymentTransactionResult tokenizedPaymentAuthorization(java.lang.String xCisClientRef, java.lang.String tenantId, CisTokenizedPaymentAuthorization cisTokenizedPaymentAuthorization)
CisClientPaymentServicetokenizedPaymentAuthorization in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierCisTokenizedPaymentTransactionResultpublic CisTokenizedPaymentTransactionResult tokenizedPaymentCapture(java.lang.String xCisClientRef, java.lang.String tenantId, java.lang.String authGroupId, java.lang.String authId, CisTokenizedPaymentCapture cisTokenizedPaymentCapture)
CisClientPaymentServicetokenizedPaymentCapture in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierauthGroupId - the authentication group identifierauthId - the authentication identifierCisTokenizedPaymentTransactionResultpublic CisTokenizedPaymentTransactionResult tokenizedPaymentRefund(java.lang.String xCisClientRef, java.lang.String tenantId, java.lang.String authGroupId, java.lang.String authId, CisTokenizedPaymentRefund cisTokenizedPaymentRefund)
CisClientPaymentServicetokenizedPaymentRefund in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierauthGroupId - the authentication group identifierauthId - the authentication identifierCisTokenizedPaymentTransactionResultpublic CisTokenizedPaymentTransactionResult tokenizedPaymentReverse(java.lang.String xCisClientRef, java.lang.String tenantId, java.lang.String authGroupId, java.lang.String authId, CisTokenizedPaymentReverse cisTokenizedPaymentReverse)
CisClientPaymentServicetokenizedPaymentReverse in interface CisClientPaymentServicexCisClientRef - the client referencetenantId - the tenant identifierauthGroupId - the authentication group identifierauthId - the authentication identifierCisTokenizedPaymentTransactionResultpublic boolean ping(java.lang.String xCisClientRef,
java.lang.String tenantId)
CisClientServiceping in interface CisClientServicexCisClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerprotected java.lang.String extractLastUriParam(java.net.URI uri)
uri - the URI for which we want to extract the last parameterprotected PaymentClient getCisPaymentClient()
public void setCisPaymentClient(PaymentClient cisPaymentClient)
cisPaymentClient - the cisPaymentClient to setCopyright © 2018 SAP SE. All Rights Reserved.