@component('IlluminateViewAnonymousComponent', 'plugins-payment::payment-method', ['view' => '5f904723f777e9efa2e1d7ccfd86bcbd::payment-method','data' => ['name' => BotblePaymentEnumsPaymentMethodEnum::vodafone_cash,'label' => get_payment_setting('name', vodafone_cash', trans('plugins/payment::payment.payment_via_vodafone_cash'))]])
<?php if (isset($attributes) && $attributes instanceof IlluminateViewComponentAttributeBag && $constructor = (new ReflectionClass(IlluminateViewAnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => IlluminateViewCompilersBladeCompiler::sanitizeComponentAttribute(BotblePaymentEnumsPaymentMethodEnum::vodafone_cash),'label' => IlluminateViewCompilersBladeCompiler::sanitizeComponentAttribute(get_payment_setting('name', vodafone_cash', trans('plugins/payment::payment.payment_via_vodafone_cash')))]); ?>
<?php
$minimumOrderAmount = get_payment_setting('minimum_amount', 'vodafone_cash', 0);
?>
@if ($minimumOrderAmount > Cart::instance('cart')->rawSubTotal())
I’m a newbie in php i was trying to add a payment method and everything seems fine until i was met with this error , the error is in the bladecompiler line but i can’t find it 🙁
New contributor
Ahmed Ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.