public abstract class PayoneCreatePaymentTransactionMethodBase extends CreatePaymentTransactionMethodBase
| Constructor and Description |
|---|
PayoneCreatePaymentTransactionMethodBase() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.concurrent.CompletionStage<PaymentTransactionCreationResult> |
afterTransactionCreation(CreatePaymentTransactionData cptd,
io.sphere.sdk.payments.Payment payment) |
protected java.lang.String |
buildHandleUrl(io.sphere.sdk.payments.Payment p) |
java.util.function.Function<CreatePaymentTransactionData,java.util.concurrent.CompletionStage<PaymentTransactionCreationResult>> |
create()
Provides a function that handles the creation of a payment transaction object within the CTP plattform.
|
protected io.sphere.sdk.payments.TransactionType |
getDefaultTransactionType(CreatePaymentTransactionData cptd) |
protected PaymentTransactionCreationResult |
handleExceptions(java.lang.Throwable t) |
protected abstract PaymentTransactionCreationResult |
handleSuccessfulServiceCall(io.sphere.sdk.payments.Payment updatedPayment)
Will be called after the Payone services handle URL request has finished successfully.
|
protected PaymentTransactionCreationResult |
redirectSuccessfulServiceCall(io.sphere.sdk.payments.Payment updatedPayment) |
protected void |
setHandleUrl(java.lang.String handleUrl) |
addPaymentUpdateActions, createPaymentTransaction, createTransactionDraftBuilder, getCustomFieldStringIfExistspublic PayoneCreatePaymentTransactionMethodBase()
public java.util.function.Function<CreatePaymentTransactionData,java.util.concurrent.CompletionStage<PaymentTransactionCreationResult>> create()
CreatePaymentTransactionMethodprotected void setHandleUrl(java.lang.String handleUrl)
protected io.sphere.sdk.payments.TransactionType getDefaultTransactionType(CreatePaymentTransactionData cptd)
protected java.lang.String buildHandleUrl(io.sphere.sdk.payments.Payment p)
protected java.util.concurrent.CompletionStage<PaymentTransactionCreationResult> afterTransactionCreation(CreatePaymentTransactionData cptd, io.sphere.sdk.payments.Payment payment)
protected abstract PaymentTransactionCreationResult handleSuccessfulServiceCall(io.sphere.sdk.payments.Payment updatedPayment)
updatedPayment - the refreshed payment objectprotected PaymentTransactionCreationResult redirectSuccessfulServiceCall(io.sphere.sdk.payments.Payment updatedPayment)
protected PaymentTransactionCreationResult handleExceptions(java.lang.Throwable t)