mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 01:17:33 -04:00 
			
		
		
		
	Added payment views
This commit is contained in:
		
							parent
							
								
									392c2def2e
								
							
						
					
					
						commit
						2da7ea8909
					
				| @ -0,0 +1,19 @@ | |||||||
|  | <div id="stripe--payment-container"> | ||||||
|  |     @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.name')]) | ||||||
|  |     <form action="{{ route('client.payments.response') }}" method="post" id="server-response"> | ||||||
|  |         @csrf | ||||||
|  |         <input type="hidden" name="gateway_response"> | ||||||
|  |         <input type="hidden" name="company_gateway_id" value="{{ $gateway->getCompanyGatewayId() }}"> | ||||||
|  |         <input type="hidden" name="payment_method_id" value="{{ $payment_method_id }}"> | ||||||
|  |         <input type="hidden" name="payment_hash" value="{{ $payment_hash }}"> | ||||||
|  |         <input type="hidden" name="store_card"> | ||||||
|  | 
 | ||||||
|  |         <label for="acss-name"> | ||||||
|  |             <input class="input w-full" id="acss-name" type="text" placeholder="{{ ctrans('texts.bank_account_holder') }}"> | ||||||
|  |         </label> | ||||||
|  |         <label for="acss-email" > | ||||||
|  |             <input class="input w-full" id="acss-email-address" type="email" placeholder="{{ ctrans('texts.email') }}"> | ||||||
|  |         </label> | ||||||
|  |     </form> | ||||||
|  |     @endcomponent | ||||||
|  | </div> | ||||||
| @ -0,0 +1,7 @@ | |||||||
|  | @extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.bank_account'), 'card_title' => ctrans('texts.bank_account')]) | ||||||
|  | 
 | ||||||
|  | @section('gateway_content') | ||||||
|  |     @component('portal.ninja2020.components.general.card-element-single', ['title' => ctrans('texts.bank_account'), 'show_title' => false]) | ||||||
|  |         {{ __('texts.sofort_authorize_label') }} | ||||||
|  |     @endcomponent | ||||||
|  | @endsection | ||||||
| @ -0,0 +1,27 @@ | |||||||
|  | @extends('portal.ninja2020.layout.payments', ['gateway_title' => 'Pre-authorized debit payments', 'card_title' => 'Pre-authorized debit payments']) | ||||||
|  | 
 | ||||||
|  | @section('gateway_head') | ||||||
|  |     <meta name="stripe-publishable-key" content="{{ $gateway->getPublishableKey() }}"> | ||||||
|  |     <meta name="stripe-account-id" content="{{ $gateway->company_gateway->getConfigField('account_id') }}"> | ||||||
|  |     <meta name="return-url" content="{{ $return_url }}"> | ||||||
|  |     <meta name="amount" content="{{ $stripe_amount }}"> | ||||||
|  |     <meta name="country" content="{{ $country }}"> | ||||||
|  |     <meta name="customer" content="{{ $customer }}"> | ||||||
|  |     <meta name="pi-client-secret" content="{{ $pi_client_secret }}"> | ||||||
|  | @endsection | ||||||
|  | 
 | ||||||
|  | @section('gateway_content') | ||||||
|  |     <div class="alert alert-failure mb-4" hidden id="errors"></div> | ||||||
|  | 
 | ||||||
|  |     @include('portal.ninja2020.gateways.includes.payment_details') | ||||||
|  | 
 | ||||||
|  |     @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) | ||||||
|  |         {{ ctrans('texts.acss') }} ({{ ctrans('texts.bank_transfer') }}) | ||||||
|  |     @endcomponent | ||||||
|  |     @include('portal.ninja2020.gateways.includes.pay_now') | ||||||
|  | @endsection | ||||||
|  | 
 | ||||||
|  | @push('footer') | ||||||
|  |     <script src="https://js.stripe.com/v3/"></script> | ||||||
|  |     <script src="{{ asset('js/clients/payments/stripe-acss.js') }}"></script> | ||||||
|  | @endpush | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user