public abstract class CreatePaymentMethodBase extends java.lang.Object implements CreatePaymentMethod
Constructor and Description |
---|
CreatePaymentMethodBase() |
Modifier and Type | Method and Description |
---|---|
protected java.util.concurrent.CompletionStage<io.sphere.sdk.payments.Payment> |
addNewPayment(CreatePaymentData cpd)
Method to To add a new payment to the Cart
|
protected io.sphere.sdk.payments.PaymentDraftBuilder |
createPaymentDraft(CreatePaymentData cpd)
Creates a payment draft object used to create a new payment object at the CTP.
|
protected static java.lang.String |
getLanguageFromCart(io.sphere.sdk.carts.Cart cart) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
protected java.util.concurrent.CompletionStage<io.sphere.sdk.payments.Payment> addNewPayment(CreatePaymentData cpd)
cpd
- contains the data for the new paymentprotected io.sphere.sdk.payments.PaymentDraftBuilder createPaymentDraft(CreatePaymentData cpd)
cpd
- the data objectprotected static java.lang.String getLanguageFromCart(io.sphere.sdk.carts.Cart cart)
cart
- Cart
value to readcart
, cart.getLocale()
or
cart.getLocale().getLanguage()
not exists.