public interface PaymentService
| Modifier and Type | Method and Description |
|---|---|
PaymentData |
beginHopCreatePaymentSubscription(java.lang.String siteName,
java.lang.String responseUrl,
java.lang.String merchantCallbackUrl,
CustomerModel customerModel,
CreditCardPaymentInfoModel cardInfo,
AddressModel paymentAddress)
This method generates the Hosted Order Page request data which includes all data required to create a subscription
(customer profile).
|
PaymentData |
beginSopCreatePaymentSubscription(java.lang.String siteName,
java.lang.String responseUrl,
java.lang.String merchantCallbackUrl,
CustomerModel customerModel,
CreditCardPaymentInfoModel cardInfo,
AddressModel paymentAddress)
This method generates the Hosted Order Page request data which includes all data required to create a subscription
(customer profile).
|
PaymentSubscriptionResultItem |
completeHopCreatePaymentSubscription(CustomerModel customerModel,
boolean saveInAccount,
java.util.Map<java.lang.String,java.lang.String> parameters)
This method creates a subscription internally with the result parameters obtained from the provider's Hosted Order
Page.
|
PaymentSubscriptionResultItem |
completeSopCreatePaymentSubscription(CustomerModel customerModel,
boolean saveInAccount,
java.util.Map<java.lang.String,java.lang.String> parameters)
This method creates a subscription internally with the result parameters obtained from the provider's Silent Order
Post.
|
void |
handleCreateSubscriptionCallback(java.util.Map<java.lang.String,java.lang.String> parameters)
This method attempts to validate the payment info with a given subscriptionId.
|
void |
handleFraudUpdateCallback(java.util.Map<java.lang.String,java.lang.String> parameters)
Uses the fraud call back strategy to handle fraud call back
|
void |
setPaymentTransactionReviewResult(PaymentTransactionEntryModel reviewDecisionEntry,
java.lang.String orderCode)
This method adds a new PaymentTransactionEntry of type REVIEW_DECISION to the order.
|
PaymentData beginHopCreatePaymentSubscription(java.lang.String siteName, java.lang.String responseUrl, java.lang.String merchantCallbackUrl, CustomerModel customerModel, CreditCardPaymentInfoModel cardInfo, AddressModel paymentAddress)
siteName - - The name of the current CMS siteresponseUrl - - The URL used by the CMS site to handle responses from the Hosted Order Page or Silent Order Post.merchantCallbackUrl - - The URL of the MerchantCallbackController used by the Provider to send validation responses.customerModel - - The Customer details.cardInfo - - If available will contain any existing credit card details used to pre-populate the HOP.paymentAddress - - If available contains the customer's billing address, used to pre-populate the HOP.PaymentData object which contains all data required to create a subscription.PaymentData beginSopCreatePaymentSubscription(java.lang.String siteName, java.lang.String responseUrl, java.lang.String merchantCallbackUrl, CustomerModel customerModel, CreditCardPaymentInfoModel cardInfo, AddressModel paymentAddress)
siteName - - The name of the current CMS siteresponseUrl - - The URL used by the CMS site to handle responses from the Hosted Order Page or Silent Order Post.merchantCallbackUrl - - The URL of the MerchantCallbackController used by the Provider to send validation responses.customerModel - - The Customer details.cardInfo - - If available will contain any existing credit card details used to pre-populate the HOP.paymentAddress - - If available contains the customer's billing address, used to pre-populate the HOP.PaymentData object which contains all data required to create a subscription.PaymentSubscriptionResultItem completeHopCreatePaymentSubscription(CustomerModel customerModel, boolean saveInAccount, java.util.Map<java.lang.String,java.lang.String> parameters)
customerModel - - The Customer details.saveInAccount - - Flag indicating if this new payment card will be stored in the customer's profile.parameters - - a Map of key-value paired Strings with the result data returned from the Hosted Order Page.PaymentSubscriptionResultItem object which contains the newly created credit card.PaymentSubscriptionResultItem completeSopCreatePaymentSubscription(CustomerModel customerModel, boolean saveInAccount, java.util.Map<java.lang.String,java.lang.String> parameters)
customerModel - - The Customer details.saveInAccount - - Flag indicating if this new payment card will be stored in the customer's profile.parameters - - a Map of key-value paired Strings with the result data returned from the Hosted Order Page.PaymentSubscriptionResultItem object which contains the newly created credit card.void handleCreateSubscriptionCallback(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - - a Map of key-value paired Strings with the result data returned from the callback handler.void handleFraudUpdateCallback(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - a Map of key-value paired Strings with the result data returned from the callback handlervoid setPaymentTransactionReviewResult(PaymentTransactionEntryModel reviewDecisionEntry, java.lang.String orderCode)
reviewDecisionEntry - - payment transaction entry of REVIEW_DECISION typeorderCode - - identifier of order for which review decision entry should be addedCopyright © 2018 SAP SE. All Rights Reserved.