mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 07:14:34 -04:00
Cleanly force payment and verification of ach payments
This commit is contained in:
parent
c507129657
commit
0d067cad7d
@ -20,23 +20,14 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
* @property string $hash
|
* @property string $hash
|
||||||
* @property string $fee_total
|
* @property string $fee_total
|
||||||
* @property int|null $fee_invoice_id
|
* @property int|null $fee_invoice_id
|
||||||
* @property object $data
|
* @property object|array $data
|
||||||
* @property int|null $payment_id
|
* @property int|null $payment_id
|
||||||
* @property \Illuminate\Support\Carbon|null $created_at
|
* @property \Illuminate\Support\Carbon|null $created_at
|
||||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||||
* @property-read \App\Models\Invoice|null $fee_invoice
|
* @property-read \App\Models\Invoice|null $fee_invoice
|
||||||
* @property-read \App\Models\Payment|null $payment
|
* @property-read \App\Models\Payment|null $payment
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash newModelQuery()
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash newQuery()
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash newQuery()
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash query()
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash query()
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash whereCreatedAt($value)
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash whereData($value)
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash whereFeeInvoiceId($value)
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash whereFeeTotal($value)
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash whereHash($value)
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash whereId($value)
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash wherePaymentId($value)
|
|
||||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentHash whereUpdatedAt($value)
|
|
||||||
* @mixin \Eloquent
|
* @mixin \Eloquent
|
||||||
*/
|
*/
|
||||||
class PaymentHash extends Model
|
class PaymentHash extends Model
|
||||||
|
@ -187,6 +187,16 @@ class ACH
|
|||||||
|
|
||||||
$intent = false;
|
$intent = false;
|
||||||
|
|
||||||
|
if (count($data['tokens']) == 1) {
|
||||||
|
|
||||||
|
$token = $data['tokens'][0];
|
||||||
|
|
||||||
|
$meta = $token->meta;
|
||||||
|
|
||||||
|
if(isset($meta->state) && $meta->state == 'unauthorized')
|
||||||
|
return redirect()->route('client.payment_methods.show', $token->hashed_id);
|
||||||
|
}
|
||||||
|
|
||||||
if (count($data['tokens']) == 0) {
|
if (count($data['tokens']) == 0) {
|
||||||
$intent =
|
$intent =
|
||||||
$this->stripe->createPaymentIntent(
|
$this->stripe->createPaymentIntent(
|
||||||
|
@ -23,7 +23,6 @@ class SendEmail
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the correct template to send.
|
* Builds the correct template to send.
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user