Interface PaymentFacade
- All Known Subinterfaces:
CommerceWebServicesPaymentFacade,CommerceWebServicesPaymentFacade
- All Known Implementing Classes:
DefaultCommerceWebServicesPaymentFacade,DefaultCommerceWebServicesPaymentFacade,DefaultPaymentFacade
public interface PaymentFacade
HOP/SOP facade interface. Service is responsible for getting all necessary information required to build
request and .. response from the implemented hosted order page or silent order post provider.
-
Method Summary
Modifier and TypeMethodDescriptionbeginHopCreateSubscription(String responseUrl, String merchantCallbackUrl) Gets the Hosted Order Page request data which includes all data required to create a subscription (customer profile).beginSopCreateSubscription(String responseUrl, String merchantCallbackUrl) Gets the Silent Order Post request data which includes all data required to create a subscription (customer profile).completeHopCreateSubscription(Map<String, String> parameters, boolean saveInAccount) Called to create a subscription internally with the result parameters obtained from the provider's Hosted Order Page.completeSopCreateSubscription(Map<String, String> parameters, boolean saveInAccount) Called to create a subscription internally with the result parameters obtained from the provider's Silent Order Post.completeSopCreateSubscription(Map<String, String> parameters, boolean saveInAccount, boolean defaultPayment) Called to create a subscription internally with the result parameters obtained from the provider's Silent Order Post.
-
Method Details
-
beginHopCreateSubscription
Gets the Hosted Order Page request data which includes all data required to create a subscription (customer profile).- Parameters:
responseUrl- - requires aHostedOrderPageRequestobject containing all the request data.merchantCallbackUrl- - The URL of the MerchantCallbackController used by the Provider to send validation responses.- Returns:
- a
PaymentDataobject which contains all data required to create a subscription.
-
beginSopCreateSubscription
Gets the Silent Order Post request data which includes all data required to create a subscription (customer profile).- Parameters:
responseUrl- - requires aHostedOrderPageRequestobject containing all the request data.merchantCallbackUrl- - The URL of the MerchantCallbackController used by the Provider to send validation responses.- Returns:
- a
PaymentDataobject which contains all data required to create a subscription.
-
completeHopCreateSubscription
PaymentSubscriptionResultData completeHopCreateSubscription(Map<String, String> parameters, boolean saveInAccount) Called to create a subscription internally with the result parameters obtained from the provider's Hosted Order Page.- Parameters:
parameters- - a Map of key-value paired Strings with the result data returned from the HOP/SOP response.saveInAccount- - a Flag to tell if the PaymentInfo created should saved to the account. During guest checkout the Anonymous user should not hav the PaymentInfos assigned- Returns:
- - a
CCPaymentInfoDataobject representing the subscription created by the HOP/SOP response.
-
completeSopCreateSubscription
PaymentSubscriptionResultData completeSopCreateSubscription(Map<String, String> parameters, boolean saveInAccount) Called to create a subscription internally with the result parameters obtained from the provider's Silent Order Post.- Parameters:
parameters- - a Map of key-value paired Strings with the result data returned from the HOP/SOP response.saveInAccount- - a Flag to tell if the PaymentInfo created should saved to the account. During guest checkout the Anonymous user should not hav the PaymentInfos assigned- Returns:
- - a
CCPaymentInfoDataobject representing the subscription created by the HOP/SOP response.
-
completeSopCreateSubscription
PaymentSubscriptionResultData completeSopCreateSubscription(Map<String, String> parameters, boolean saveInAccount, boolean defaultPayment) Called to create a subscription internally with the result parameters obtained from the provider's Silent Order Post.- Parameters:
parameters- - a Map of key-value paired Strings with the result data returned from the HOP/SOP response.saveInAccount- - a Flag to tell if the PaymentInfo created should saved to the account. During guest checkout the Anonymous user should not hav the PaymentInfos assigneddefaultPayment- - a flag to tell whether the created PaymentInfo should be made default or not- Returns:
- - a
CCPaymentInfoDataobject representing the subscription created by the HOP/SOP response.
-