How to get payment method name using payment option id using api

giridhar Addagalla asked on November 2, 2018 15:28

Hi , can i get payment option type using OrderPaymentOptionID using api. like PaymentOptionInfoProvider.GetPaymentOptionInfo(OrderPaymentOptionID , SiteContext.CurrentSiteName);

Correct Answer

David te Kloese answered on November 2, 2018 15:40

paymentOptionInfo = PaymentOptionInfoProvider.GetPaymentOptionInfo(paymentID);
var displayName = paymentOptionInfo.PaymentOptionDisplayName;
var description = paymentOptionInfo.PaymentOptionDescription;
1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.