Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup] Adding Commonwealth Bank Logo On The Gateways Creation Page #2109

Open
wants to merge 26 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
52d9674
Added additional logo on gateway creation page
Civolilah Oct 8, 2024
b554065
Added key for commonwealth_bank gateway
Civolilah Oct 8, 2024
0a1024e
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 8, 2024
d788ecf
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 9, 2024
86cdcc4
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 15, 2024
5307659
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 17, 2024
7d45d9b
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 21, 2024
bf87b30
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 22, 2024
8ff9717
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 23, 2024
a5cd616
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 24, 2024
3783233
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Oct 25, 2024
a3e6b8a
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 6, 2024
8de05bd
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 12, 2024
3042bcb
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 15, 2024
36b2a09
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 17, 2024
1d3b96b
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 18, 2024
9a94763
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 19, 2024
34fbf2c
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 20, 2024
13a176b
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 21, 2024
c112840
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 24, 2024
66d4f39
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 25, 2024
7a4b88e
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 26, 2024
3974ec3
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 27, 2024
81a54e9
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Nov 27, 2024
b9a67a2
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Dec 1, 2024
b10f9b7
Merge branch 'develop' into cleanup/common-wealth-bank
Civolilah Dec 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/gateway-card-images/commonwealth-bank.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion src/pages/clients/show/components/GatewayTypeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -49,6 +50,7 @@ export const availableGatewayLogos = [
'forte',
'paypal_rest',
'btcpay',
'commonwealth_bank',
];

export type GatewayLogoName =
Expand All @@ -71,7 +73,8 @@ export type GatewayLogoName =
| 'eway'
| 'forte'
| 'paypal_rest'
| 'btcpay';
| 'btcpay'
| 'commonwealth_bank';

interface Props {
name: GatewayLogoName;
Expand Down Expand Up @@ -260,6 +263,15 @@ export function GatewayTypeIcon(props: Props) {
/>
);

case 'commonwealth_bank':
return (
<img
src={CommonwealthBankLogo}
alt="Commonwealth Bank"
style={props.style || { width: 30, height: 30 }}
/>
);

default:
return <></>;
}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/settings/gateways/create/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const gatewaysStyles = [
{ name: 'square', width: 130 },
{ name: 'checkoutcom', width: 170 },
{ name: 'btcpay', width: 90 },
{ name: 'commonwealth_bank', width: 140 },
];

export const gatewaysDetails = [
Expand All @@ -69,6 +70,7 @@ export const gatewaysDetails = [
{ name: 'payfast', key: 'd6814fc83f45d2935e7777071e629ef9' },
{ name: 'eway', key: '944c20175bbe6b9972c05bcfe294c2c7' },
{ name: 'btcpay', key: 'vpyfbmdrkqcicpkjqdusgjfluebftuva' },
{ name: 'commonwealth_bank', key: 'b67581d804dbad1743b61c57285142ad' },
];

const hostedGatewayFilter = [
Expand Down
Loading