mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
More fixes
This commit is contained in:
parent
2b7893aad9
commit
f87d84ee1e
@ -72,13 +72,13 @@ class BACS
|
|||||||
{
|
{
|
||||||
$data['gateway'] = $this->stripe;
|
$data['gateway'] = $this->stripe;
|
||||||
$data['amount'] = $data['total']['amount_with_fee'];
|
$data['amount'] = $data['total']['amount_with_fee'];
|
||||||
|
$data['payment_hash'] = $this->stripe->payment_hash->hash;
|
||||||
|
|
||||||
return render('gateways.stripe.bacs.pay', $data);
|
return render('gateways.stripe.bacs.pay', $data);
|
||||||
}
|
}
|
||||||
public function paymentResponse(PaymentResponseRequest $request)
|
public function paymentResponse(PaymentResponseRequest $request)
|
||||||
{
|
{
|
||||||
$this->stripe->init();
|
$this->stripe->init();
|
||||||
nlog($request);
|
|
||||||
$invoice_numbers = collect($this->stripe->payment_hash->invoices())->pluck('invoice_number')->implode(',');
|
$invoice_numbers = collect($this->stripe->payment_hash->invoices())->pluck('invoice_number')->implode(',');
|
||||||
$description = ctrans('texts.stripe_payment_text', ['invoicenumber' => $invoice_numbers, 'amount' => Number::formatMoney($request->amount, $this->stripe->client), 'client' => $this->stripe->client->present()->name()]);
|
$description = ctrans('texts.stripe_payment_text', ['invoicenumber' => $invoice_numbers, 'amount' => Number::formatMoney($request->amount, $this->stripe->client), 'client' => $this->stripe->client->present()->name()]);
|
||||||
$payment_intent_data = [
|
$payment_intent_data = [
|
||||||
@ -96,7 +96,7 @@ class BACS
|
|||||||
];
|
];
|
||||||
$this->stripe->createPaymentIntent($payment_intent_data);
|
$this->stripe->createPaymentIntent($payment_intent_data);
|
||||||
$state = [
|
$state = [
|
||||||
'payment_hash' => $this->stripe->payment_hash->hash,
|
'payment_hash' => $request->payment_hash,
|
||||||
];
|
];
|
||||||
|
|
||||||
$state = array_merge($state, $request->all());
|
$state = array_merge($state, $request->all());
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="company_gateway_id" value="{{ $gateway->getCompanyGatewayId() }}">
|
<input type="hidden" name="company_gateway_id" value="{{ $gateway->getCompanyGatewayId() }}">
|
||||||
<input type="hidden" name="token">
|
<input type="hidden" name="token">
|
||||||
|
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
|
||||||
<input type="hidden" name="amount" value={{ $amount }}>
|
<input type="hidden" name="amount" value={{ $amount }}>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user