Return a string that represents the User facing name for payment method

@param {string} method - payment method
@returns {string} the title
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;
}