Skip to content

Commit

Permalink
logo issues fixed
Browse files Browse the repository at this point in the history
logo issues fixed
  • Loading branch information
wontone18 committed May 31, 2024
1 parent a6ad478 commit a7f302b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/Config/system.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
'channel_based' => false,
'locale_based' => true,
],
[
'name' => 'image',
'title' => 'Logo',
'type' => 'image',
'channel_based' => false,
'locale_based' => false,
'validation' => 'mimes:bmp,jpeg,jpg,png,webp',
],
[
'name' => 'stripe_api_key',
'title' => 'Strip Secret Key',
Expand Down
16 changes: 14 additions & 2 deletions src/Payment/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Wontonee\Stripe\Payment;

use Webkul\Payment\Payment\Payment;
use Illuminate\Support\Facades\Storage;

class Stripe extends Payment
{
Expand All @@ -16,6 +17,17 @@ class Stripe extends Payment
public function getRedirectUrl()
{
return route('stripe.process');

}
}

/**
* Get payment method image.
*
* @return array
*/
public function getImage()
{
$url = $this->getConfigData('image');

return $url ? Storage::url($url) : '';
}
}

0 comments on commit a7f302b

Please sign in to comment.