Step::make('step1')
->afterValidation(function (Set $set, $state) {
if ($state['payment_gateway'] === 'Payment Terminals') {
$response = publisher(strval(floatval($state['amount']) * 100), $state['pos_epi_id']);
if ( $response['STATE'] === '0') {
$payment = $this->paymentCreate($state);
info('Payment created');
}
}
}),
Step::make('step2')
->schema([View::make('forms.components.workshop-payment-response')])
Step::make('step1')
->afterValidation(function (Set $set, $state) {
if ($state['payment_gateway'] === 'Payment Terminals') {
$response = publisher(strval(floatval($state['amount']) * 100), $state['pos_epi_id']);
if ( $response['STATE'] === '0') {
$payment = $this->paymentCreate($state);
info('Payment created');
}
}
}),
Step::make('step2')
->schema([View::make('forms.components.workshop-payment-response')])