diff --git a/public/gateway-card-images/commonwealth-bank.jpg b/public/gateway-card-images/commonwealth-bank.jpg new file mode 100644 index 0000000000..0c10d08a8e Binary files /dev/null and b/public/gateway-card-images/commonwealth-bank.jpg differ diff --git a/src/pages/clients/show/components/GatewayTypeIcon.tsx b/src/pages/clients/show/components/GatewayTypeIcon.tsx index d5f81128ee..f3271df2e3 100644 --- a/src/pages/clients/show/components/GatewayTypeIcon.tsx +++ b/src/pages/clients/show/components/GatewayTypeIcon.tsx @@ -27,6 +27,7 @@ import ewayLogo from '/gateway-card-images/eway.png'; import forteLogo from '/gateway-card-images/forte.png'; import wepayLogo from '/gateway-card-images/wepay.svg'; import BTCPayLogo from '/gateway-card-images/btcpay.png'; +import CommonwealthBankLogo from '/gateway-card-images/commonwealth-bank.jpg'; export const availableGatewayLogos = [ 'paypal_ppcp', @@ -49,6 +50,7 @@ export const availableGatewayLogos = [ 'forte', 'paypal_rest', 'btcpay', + 'commonwealth_bank', ]; export type GatewayLogoName = @@ -71,7 +73,8 @@ export type GatewayLogoName = | 'eway' | 'forte' | 'paypal_rest' - | 'btcpay'; + | 'btcpay' + | 'commonwealth_bank'; interface Props { name: GatewayLogoName; @@ -260,6 +263,15 @@ export function GatewayTypeIcon(props: Props) { /> ); + case 'commonwealth_bank': + return ( + Commonwealth Bank + ); + default: return <>; } diff --git a/src/pages/settings/gateways/create/Create.tsx b/src/pages/settings/gateways/create/Create.tsx index 255160346c..0a73f3296c 100644 --- a/src/pages/settings/gateways/create/Create.tsx +++ b/src/pages/settings/gateways/create/Create.tsx @@ -53,6 +53,7 @@ const gatewaysStyles = [ { name: 'square', width: 130 }, { name: 'checkoutcom', width: 170 }, { name: 'btcpay', width: 90 }, + { name: 'commonwealth_bank', width: 140 }, ]; export const gatewaysDetails = [ @@ -73,6 +74,7 @@ export const gatewaysDetails = [ { name: 'payfast', key: 'd6814fc83f45d2935e7777071e629ef9' }, { name: 'eway', key: '944c20175bbe6b9972c05bcfe294c2c7' }, { name: 'btcpay', key: 'vpyfbmdrkqcicpkjqdusgjfluebftuva' }, + { name: 'commonwealth_bank', key: 'b67581d804dbad1743b61c57285142ad' }, ]; const hostedGatewayFilter = [