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

Chain coin Icons are in a different directory in Coinpayments.net #66

Open
goldsvetlobby opened this issue Jul 30, 2021 · 1 comment
Open

Comments

@goldsvetlobby
Copy link

goldsvetlobby commented Jul 30, 2021

The Chain icons are not showing because these icons are in the /images/chained folder

How can I call them ? the following in the ajax controller is defined as $icon how to add another variable?
I tried @icon1 but no luck!!!

$icon = $logos[$value['name']] ?? 'https://www.coinpayments.net/images/coins/' . $img . '.png';

I suppose I need:

$icon = $logos[$value['name']] ?? 'https://www.coinpayments.net/images/coins/chained/' . $img . '.png';

@Crypto2
Copy link

Crypto2 commented Nov 24, 2021

The CoinPayments 'rates' API call returns the coin image URL so they can get the right image URL for the coin from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants