Skip to content

Commit

Permalink
fix: blade parameters must be camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
RoduanKD committed Feb 21, 2022
1 parent bf34730 commit 9c2127f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function handle(TransactionCreated $event)

and you'll need to update the route for init component
```php
<x-moyasar-init amount="100" />
<x-moyasar-init amount="100" :on-complete="route('moyasar.complete', $membership)" />
```

Optionally, you can publish the views using
Expand Down
2 changes: 1 addition & 1 deletion resources/views/init.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
// Default: ['creditcard', 'applepay', 'stcpay']
methods: @json($methods ?? config('moyasar.methods')),
on_complete: '{{ $on_complete ?? route(config('moyasar.on_complete_url')) }}'
on_complete: '{{ $onComplete ?? route(config('moyasar_on_complete_url')) }}'
})
</script>
2 changes: 1 addition & 1 deletion src/Components/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public ?string $element = null,
public ?string $description = null,
public ?string $callback = null,
public ?string $on_complete = null,
public ?string $onComplete = null,
public ?array $methods = null
) {
if ($this->amount < 0) {
Expand Down

0 comments on commit 9c2127f

Please sign in to comment.