mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-07 01:56:53 +00:00
[Feature Request] Waffo Pancake gateway — full integration with subscription support + admin catalog binding flow (#4935)
This commit is contained in:
+19
-4
@@ -19,6 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import { type ReactNode } from 'react'
|
||||
import { CreditCard, Landmark } from 'lucide-react'
|
||||
import { SiAlipay, SiWechat, SiStripe } from 'react-icons/si'
|
||||
import i18next from 'i18next'
|
||||
import { PAYMENT_TYPES, PAYMENT_ICON_COLORS } from '../constants'
|
||||
|
||||
// ============================================================================
|
||||
@@ -121,11 +122,25 @@ export function getPaymentIcon(
|
||||
/>
|
||||
)
|
||||
case PAYMENT_TYPES.WAFFO_PANCAKE:
|
||||
// The W glyph fills only ~40% of its viewBox vertically (wide and
|
||||
// short letterform); scale(2) brings its rendered height in line
|
||||
// with Stripe's S and Creem's Landmark.
|
||||
return (
|
||||
<CreditCard
|
||||
className={className}
|
||||
style={{ color: PAYMENT_ICON_COLORS[PAYMENT_TYPES.WAFFO_PANCAKE] }}
|
||||
/>
|
||||
<span
|
||||
className={`inline-flex items-center justify-center leading-none ${className}`}
|
||||
style={{ transform: 'scale(2)' }}
|
||||
>
|
||||
<img
|
||||
src='/waffo-logo-light.svg'
|
||||
alt={i18next.t('Waffo')}
|
||||
className='block h-full w-full object-contain dark:hidden'
|
||||
/>
|
||||
<img
|
||||
src='/waffo-logo-dark.svg'
|
||||
alt={i18next.t('Waffo')}
|
||||
className='hidden h-full w-full object-contain dark:block'
|
||||
/>
|
||||
</span>
|
||||
)
|
||||
default:
|
||||
return <CreditCard className={className} />
|
||||
|
||||
Reference in New Issue
Block a user