Interface TmaPaymentMethodFacade

All Known Implementing Classes:
DefaultTmaPaymentMethodFacade

public interface TmaPaymentMethodFacade
Facade responsible for operations with payment data.
Since:
2211
  • Method Details

    • setDefaultPaymentInfo

      void setDefaultPaymentInfo(CCPaymentInfoData paymentInfoData, String userId)
      Sets the default payment method for a given customer.
      Parameters:
      paymentInfoData - the data containing the customer's card details
      userId - the customer's id
    • createPaymentSubscription

      CCPaymentInfoData createPaymentSubscription(CCPaymentInfoData paymentInfoData, String userId)
      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 details
      userId - the data instance containing the customer's id
      Returns:
      the newly created payment info data