function paymentMethodName( method ) {
	const paymentMethodsNames = {
		alipay: 'Alipay',
		bancontact: 'Bancontact',
		'credit-card': i18n.translate( 'Credit or debit card' ),
		eps: 'EPS',
		giropay: 'Giropay',
		ideal: 'iDEAL',
		netbanking: 'Net Banking',
		paypal: 'PayPal',
		p24: 'Przelewy24',
		'brazil-tef': 'Transferência bancária',
		wechat: i18n.translate( 'WeChat Pay', {
			comment: 'Name for WeChat Pay - https://pay.weixin.qq.com/',
		} ),
		'web-payment': i18n.translate( 'Wallet' ),
		sofort: 'Sofort',
	};

	return paymentMethodsNames[ method ] || method;
}
function paymentMethodName( method ) {
	const paymentMethodsNames = {
		alipay: 'Alipay',
		bancontact: 'Bancontact',
		'credit-card': i18n.translate( 'Credit or debit card' ),
		eps: 'EPS',
		giropay: 'Giropay',
		ideal: 'iDEAL',
		netbanking: 'Net Banking',
		paypal: 'PayPal',
		p24: 'Przelewy24',
		'brazil-tef': 'Transferência bancária',
		wechat: i18n.translate( 'WeChat Pay', {
			comment: 'Name for WeChat Pay - https:
		} ),
		'web-payment': i18n.translate( 'Wallet' ),
		sofort: 'Sofort',
	};

	return paymentMethodsNames[ method ] || method;
}
function paymentMethodName ( method ) { const paymentMethodsNames = { alipay : 'Alipay' , bancontact : 'Bancontact' , 'credit-card' : i18n . translate ( 'Credit or debit card' ) , eps : 'EPS' , giropay : 'Giropay' , ideal : 'iDEAL' , netbanking : 'Net Banking' , paypal : 'PayPal' , p24 : 'Przelewy24' , 'brazil-tef' : 'Transferência bancária', wechat : i18n . translate ( 'WeChat Pay' , { comment : 'Name for WeChat Pay - https://pay.weixin.qq.com/' , } ) , 'web-payment' : i18n . translate ( 'Wallet' ) , sofort : 'Sofort' , } ; return paymentMethodsNames [ method ] || method ; }
Return a string that represents the User facing name for payment method

@param {string} method - payment method
@returns {string} the title
Return a string that represents the User facing name for payment method