mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	More fixes
This commit is contained in:
		
							parent
							
								
									2b7893aad9
								
							
						
					
					
						commit
						f87d84ee1e
					
				@ -72,13 +72,13 @@ class BACS
 | 
			
		||||
    {
 | 
			
		||||
        $data['gateway'] = $this->stripe;
 | 
			
		||||
        $data['amount'] = $data['total']['amount_with_fee'];
 | 
			
		||||
        $data['payment_hash'] = $this->stripe->payment_hash->hash;
 | 
			
		||||
 | 
			
		||||
        return render('gateways.stripe.bacs.pay', $data);
 | 
			
		||||
    }
 | 
			
		||||
    public function paymentResponse(PaymentResponseRequest $request)
 | 
			
		||||
    {
 | 
			
		||||
        $this->stripe->init();
 | 
			
		||||
        nlog($request);
 | 
			
		||||
        $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()]);
 | 
			
		||||
        $payment_intent_data = [
 | 
			
		||||
@ -96,7 +96,7 @@ class BACS
 | 
			
		||||
        ];
 | 
			
		||||
        $this->stripe->createPaymentIntent($payment_intent_data);
 | 
			
		||||
        $state = [
 | 
			
		||||
            'payment_hash' => $this->stripe->payment_hash->hash,
 | 
			
		||||
            'payment_hash' => $request->payment_hash,
 | 
			
		||||
        ];
 | 
			
		||||
 | 
			
		||||
        $state = array_merge($state, $request->all());
 | 
			
		||||
 | 
			
		||||
@ -15,6 +15,7 @@
 | 
			
		||||
        @csrf
 | 
			
		||||
        <input type="hidden" name="company_gateway_id" value="{{ $gateway->getCompanyGatewayId() }}">
 | 
			
		||||
        <input type="hidden" name="token">
 | 
			
		||||
        <input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
 | 
			
		||||
        <input type="hidden" name="amount" value={{ $amount }}>
 | 
			
		||||
    </form>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user