Skip to content

Commit

Permalink
Replaced OCBC digital logo (#422)
Browse files Browse the repository at this point in the history
Co-authored-by: Aashish <aashish@omise.co>
  • Loading branch information
aashishgurung and Aashish committed Nov 17, 2023
1 parent 2986276 commit f323816
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file removed assets/images/ocbc-digital.png
Binary file not shown.
1 change: 1 addition & 0 deletions assets/images/ocbc-digital.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions includes/gateway/class-omise-payment-ocbc-digital.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ public function charge($order_id, $order)
public function get_icon()
{
$icon = Omise_Image::get_image([
'file' => 'ocbc-digital.png',
'file' => 'ocbc-digital.svg',
'alternate_text' => 'OCBC Digital',
'width' => 60,
]);
return apply_filters( 'woocommerce_gateway_icon', $icon, $this->id );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getIconReturnsCorrectImageLink()
{
$result = $this->obj->get_icon();
$this->assertEquals(
"<img src='/ocbc-digital.png' class='Omise-Image' style='width: 60px; max-height: 30px;' alt='OCBC Digital' />",
"<img src='/ocbc-digital.svg' class='Omise-Image' style='width: 30px; max-height: 30px;' alt='OCBC Digital' />",
$result
);
}
Expand Down

0 comments on commit f323816

Please sign in to comment.