wpsc_gateway_image_url

Located in: Located in: checkout.class.php
Version Introduced: 3.8

Description: Selected gateways have credit card images associated with them, to show what cards they accept, this template tag returns the image URL for each gateway.

Note: You must use this tag within the gateway loop. This template tag only returns the value so you must echo out the tag. You should use the following conditional to check if the gateway has an image before outputting it

[php] <?php while (wpsc_have_gateways()) : wpsc_the_gateway(); ?> [/php]

Code Example:
[php]
<div class="custom_gateway">

<?php if( wpsc_show_gateway_image() ): ?>
<img src="<?php echo wpsc_gateway_image_url(); ?>" alt="<?php echo wpsc_gateway_name(); ?>" style="position:relative; top:5px;" />
<?php endif; ?>
[/php]