Skip to content

Commit

Permalink
Fix payment methods form
Browse files Browse the repository at this point in the history
  • Loading branch information
sangnguyenplus committed Dec 10, 2024
1 parent e5e6fd5 commit cdcff41
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"provider": "FriendsOfBotble\\PhonePe\\Providers\\PhonePeServiceProvider",
"author": "Friends Of Botble",
"url": "https://friendsofbotble.com",
"version": "1.0.3",
"version": "1.0.4",
"description": "PhonePe payment gateway for Botble scripts",
"minimum_core_version": "7.3.0",
"require": [
Expand Down
22 changes: 22 additions & 0 deletions resources/views/instructions.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<ol>
<li>
<p>
<a
href="https://phonepe.com"
target="_blank"
>
{{ __('Register an account on :name', ['name' => 'PhonePe']) }}
</a>
</p>
</li>
<li>
<p>
{{ __('After registration at :name, you will have Public & Secret keys', ['name' => 'PhonePe']) }}
</p>
</li>
<li>
<p>
{{ __('Enter Public, Secret into the box in right hand') }}
</p>
</li>
</ol>
2 changes: 1 addition & 1 deletion src/Forms/PhonePePaymentMethodForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function setup(): void
->paymentDescription(__('Customer can buy product and pay directly using Visa, Credit card via :name', ['name' => 'PhonePe']))
->paymentLogo(url('vendor/core/plugins/fob-phonepe/images/phonepe.png'))
->paymentUrl('https://www.phonepe.com')
->paymentInstructions(view('plugins/paystack::instructions')->render())
->paymentInstructions(view('plugins/fob-phonepe::instructions')->render())
->add(
get_payment_setting_key('merchant_id', PhonePePayment::getId()),
TextField::class,
Expand Down

0 comments on commit cdcff41

Please sign in to comment.