public interface PaymentService
| Modifier and Type | Method and Description |
|---|---|
void |
attachPaymentInfo(PaymentTransactionModel paymentTransactionModel,
UserModel userModel,
CardInfo cardInfo,
java.math.BigDecimal amount)
Attaches PaymentInfo to the assigned PaymentTransactionModel instance.
|
PaymentTransactionEntryModel |
authorize(OrderModel order,
CardInfo card)
Deprecated.
Since 4.2 use any of the other authorize methods
|
PaymentTransactionEntryModel |
authorize(PaymentTransactionModel transaction,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel deliveryAddress,
AddressModel paymentAddress,
CardInfo card)
authorize payment
|
PaymentTransactionEntryModel |
authorize(PaymentTransactionModel transaction,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel deliveryAddress,
java.lang.String subscriptionID)
authorize payment
|
PaymentTransactionEntryModel |
authorize(PaymentTransactionModel transaction,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel deliveryAddress,
java.lang.String subscriptionID,
java.lang.String paymentProvider)
authorize payment
|
PaymentTransactionEntryModel |
authorize(java.lang.String merchantTransactionCode,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel deliveryAddress,
AddressModel paymentAddress,
CardInfo card)
authorize payment
|
PaymentTransactionEntryModel |
authorize(java.lang.String merchantTransactionCode,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel deliveryAddress,
java.lang.String subscriptionID)
authorize payment
|
PaymentTransactionEntryModel |
authorize(java.lang.String merchantTransactionCode,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel deliveryAddress,
java.lang.String subscriptionID,
java.lang.String cv2,
java.lang.String paymentProvider)
authorize payment
|
PaymentTransactionEntryModel |
cancel(PaymentTransactionEntryModel transaction)
Cancel payment
|
PaymentTransactionEntryModel |
capture(PaymentTransactionModel transaction)
capture payment
|
NewSubscription |
createSubscription(PaymentTransactionModel transaction,
AddressModel paymentAddress,
CardInfo card)
Creates a subscription at the payment provider side and stores sensitive data there.
|
NewSubscription |
createSubscription(java.lang.String merchantTransactionCode,
java.lang.String paymentProvider,
java.util.Currency currency,
AddressModel paymentAddress,
CardInfo card)
Creates a subscription at the payment provider side and stores sensitive data there.
|
PaymentTransactionEntryModel |
deleteSubscription(java.lang.String merchantTransactionCode,
java.lang.String subscriptionID,
java.lang.String paymentProvider)
Deletes the subscription at the payment provider.
|
java.lang.String |
getNewPaymentTransactionEntryCode(PaymentTransactionModel transaction,
PaymentTransactionType paymentTransactionType)
A new code for a
PaymentTransactionEntryModel based on the PaymentTransactionModel associated to
it and the number of entries. |
PaymentTransactionModel |
getPaymentTransaction(java.lang.String code)
Get
PaymentTransactionModel by code |
PaymentTransactionEntryModel |
getPaymentTransactionEntry(java.lang.String code)
Get
PaymentTransactionEntryModel by code |
PaymentTransactionEntryModel |
getSubscriptionData(java.lang.String merchantTransactionCode,
java.lang.String subscriptionID,
java.lang.String paymentProvider,
BillingInfo billingInfo,
CardInfo card)
Gets the stored card info or payment address
|
PaymentTransactionEntryModel |
partialCapture(PaymentTransactionModel transaction,
java.math.BigDecimal amount)
Take a partial capture of authorized transaction
|
PaymentTransactionEntryModel |
refundFollowOn(PaymentTransactionModel transaction,
java.math.BigDecimal amount)
Refund transaction
|
PaymentTransactionEntryModel |
refundStandalone(StandaloneRefundRequest request)
Deprecated.
|
PaymentTransactionEntryModel |
refundStandalone(java.lang.String merchantTransactionCode,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel paymentAddress,
CardInfo card)
Refund value to a card (no transaction is obligatory)
|
default PaymentTransactionEntryModel |
refundStandalone(java.lang.String merchantTransactionCode,
java.math.BigDecimal amount,
java.util.Currency currency,
AddressModel paymentAddress,
CardInfo card,
java.lang.String providerName,
java.lang.String subscriptionId)
Refund value to a card (no transaction is obligatory)
|
PaymentTransactionEntryModel |
updateSubscription(java.lang.String merchantTransactionCode,
java.lang.String subscriptionID,
java.lang.String paymentProvider,
AddressModel paymentAddress,
CardInfo card)
Updates the data of the subscription at the payment provider.
|
@Deprecated PaymentTransactionEntryModel authorize(OrderModel order, CardInfo card)
order - the ordercard - the cardPaymentTransactionEntryModel authorize(java.lang.String merchantTransactionCode, java.math.BigDecimal amount, java.util.Currency currency, AddressModel deliveryAddress, java.lang.String subscriptionID)
merchantTransactionCode - the transaction codeamount - the amountcurrency - the currencydeliveryAddress - the delivery address (paymentAddress is used if null)subscriptionID - the subscriptionIDPaymentTransactionEntryModel authorize(java.lang.String merchantTransactionCode, java.math.BigDecimal amount, java.util.Currency currency, AddressModel deliveryAddress, java.lang.String subscriptionID, java.lang.String cv2, java.lang.String paymentProvider)
merchantTransactionCode - the transaction codeamount - the amountcurrency - the currencydeliveryAddress - the delivery address (paymentAddress is used if null)subscriptionID - the subscriptionIDcv2 - card verification valuepaymentProvider - code of payment providerPaymentTransactionEntryModel authorize(java.lang.String merchantTransactionCode, java.math.BigDecimal amount, java.util.Currency currency, AddressModel deliveryAddress, AddressModel paymentAddress, CardInfo card)
merchantTransactionCode - the transaction codeamount - the amountcurrency - the currencydeliveryAddress - the delivery address (paymentAddress is used if null)paymentAddress - the payment addresscard - the cardPaymentTransactionEntryModel authorize(PaymentTransactionModel transaction, java.math.BigDecimal amount, java.util.Currency currency, AddressModel deliveryAddress, java.lang.String subscriptionID, java.lang.String paymentProvider)
transaction - the payment transactionamount - the amountcurrency - the currencydeliveryAddress - the delivery address (paymentAddress is used if null)subscriptionID - the subscriptionIDpaymentProvider - code of payment providerPaymentTransactionEntryModel authorize(PaymentTransactionModel transaction, java.math.BigDecimal amount, java.util.Currency currency, AddressModel deliveryAddress, java.lang.String subscriptionID)
transaction - the payment transactionamount - the amountcurrency - the currencydeliveryAddress - the delivery address (paymentAddress is used if null)subscriptionID - the subscriptionIDPaymentTransactionEntryModel authorize(PaymentTransactionModel transaction, java.math.BigDecimal amount, java.util.Currency currency, AddressModel deliveryAddress, AddressModel paymentAddress, CardInfo card)
transaction - the payment transactionamount - the amountcurrency - the currencydeliveryAddress - the delivery address (paymentAddress is used if null)paymentAddress - the payment addresscard - the cardPaymentTransactionEntryModel capture(PaymentTransactionModel transaction)
transaction - payment transactionPaymentTransactionEntryModel cancel(PaymentTransactionEntryModel transaction)
transaction - payment transactionPaymentTransactionEntryModel refundFollowOn(PaymentTransactionModel transaction, java.math.BigDecimal amount)
transaction - payment transactionamount - amount to refund@Deprecated PaymentTransactionEntryModel refundStandalone(StandaloneRefundRequest request)
refundStandalone(String, BigDecimal, Currency, AddressModel, CardInfo)request - instance of StandaloneRefundRequest for a refund detailsPaymentTransactionEntryModel refundStandalone(java.lang.String merchantTransactionCode, java.math.BigDecimal amount, java.util.Currency currency, AddressModel paymentAddress, CardInfo card)
merchantTransactionCode - any code to locate transactionamount - amount to refundcurrency - currency, used for refundingpaymentAddress - address to refundcard - card to refunddefault PaymentTransactionEntryModel refundStandalone(java.lang.String merchantTransactionCode, java.math.BigDecimal amount, java.util.Currency currency, AddressModel paymentAddress, CardInfo card, java.lang.String providerName, java.lang.String subscriptionId)
merchantTransactionCode - any code to locate transactionamount - amount to refundcurrency - currency, used for refundingpaymentAddress - address to refundcard - card to refundproviderName - name of the payment providersubscriptionId - subscription identifierPaymentTransactionEntryModel partialCapture(PaymentTransactionModel transaction, java.math.BigDecimal amount)
transaction - authorized transactionamount - value to capturePaymentTransactionModel getPaymentTransaction(java.lang.String code)
PaymentTransactionModel by codecode - the code of the PaymentTransactionModel we were looking forPaymentTransactionModelPaymentTransactionEntryModel getPaymentTransactionEntry(java.lang.String code)
PaymentTransactionEntryModel by codecode - the code of the PaymentTransactionModel we were looking forPaymentTransactionEntryModelvoid attachPaymentInfo(PaymentTransactionModel paymentTransactionModel, UserModel userModel, CardInfo cardInfo, java.math.BigDecimal amount)
paymentTransactionModel - the payment transactionuserModel - the usercardInfo - the card infoamount - the amount expressed as BigDecimalNewSubscription createSubscription(PaymentTransactionModel transaction, AddressModel paymentAddress, CardInfo card)
transaction - a previous recent successful authorize payment transactionpaymentAddress - the same billing address as for the authorize txncard - the same card as for the authorize txnNewSubscriptionNewSubscription createSubscription(java.lang.String merchantTransactionCode, java.lang.String paymentProvider, java.util.Currency currency, AddressModel paymentAddress, CardInfo card)
merchantTransactionCode - the transactionCodepaymentProvider - the paymentProvider who will hold the subscription. You might also have just one payment provider in
your implementation.currency - the default customer's currencypaymentAddress - the same billing address as for the authorize txncard - the same card as for the authorize txnNewSubscription)PaymentTransactionEntryModel updateSubscription(java.lang.String merchantTransactionCode, java.lang.String subscriptionID, java.lang.String paymentProvider, AddressModel paymentAddress, CardInfo card)
merchantTransactionCode - the transactionCodesubscriptionID - the subscription IDpaymentProvider - the paymentProvider who holds the subscription. You get this value from the
PaymentTransactionModel of the createSubscription command. You might also have just one payment
provider in your implementation.paymentAddress - the new billing address, could be nullcard - the updated card, could be nullPaymentTransactionEntryModelPaymentTransactionEntryModel getSubscriptionData(java.lang.String merchantTransactionCode, java.lang.String subscriptionID, java.lang.String paymentProvider, BillingInfo billingInfo, CardInfo card)
merchantTransactionCode - the transactionCodesubscriptionID - the subscription IDpaymentProvider - the paymentProvider who holds the subscription. You get this value from the
PaymentTransactionModel of the createSubscription command. You might also have just one payment
provider in your implementation.billingInfo - the billing address is returned in this DTOcard - the card information is returned in this DTOPaymentTransactionEntryModelPaymentTransactionEntryModel deleteSubscription(java.lang.String merchantTransactionCode, java.lang.String subscriptionID, java.lang.String paymentProvider)
merchantTransactionCode - the transactionCodesubscriptionID - the subscription IDpaymentProvider - the paymentProvider who holds the subscription. You get this value from the
PaymentTransactionModel of the createSubscription command. You might also have just one payment
provider in your implementation.PaymentTransactionEntryModeljava.lang.String getNewPaymentTransactionEntryCode(PaymentTransactionModel transaction, PaymentTransactionType paymentTransactionType)
PaymentTransactionEntryModel based on the PaymentTransactionModel associated to
it and the number of entries.transaction - An associated Payment transactionpaymentTransactionType - A type of entry.Copyright © 2018 SAP SE. All Rights Reserved.