Interface TmaPaymentMethodFacade
- All Known Implementing Classes:
DefaultTmaPaymentMethodFacade
public interface TmaPaymentMethodFacade
Facade responsible for operations with payment data.
- Since:
- 2211
-
Method Summary
Modifier and TypeMethodDescriptioncreatePaymentSubscription(CCPaymentInfoData paymentInfoData, String userId) Create new payment subscription.voidsetDefaultPaymentInfo(CCPaymentInfoData paymentInfoData, String userId) Sets the default payment method for a given customer.
-
Method Details
-
setDefaultPaymentInfo
Sets the default payment method for a given customer.- Parameters:
paymentInfoData- the data containing the customer's card detailsuserId- the customer's id
-
createPaymentSubscription
Create new payment subscription. Pass in a CCPaymentInfoData containing the customer's card details. A new payment subscription will be created, and the sorted card details will be returned in a new CCPaymentInfoData.- Parameters:
paymentInfoData- the data instance containing the customer's card detailsuserId- the data instance containing the customer's id- Returns:
- the newly created payment info data
-