1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 08:02:40 +01:00
invoiceninja/resources/views/billing-portal/purchase.blade.php

18 lines
788 B
PHP
Raw Normal View History

2021-03-11 17:20:30 +01:00
@extends('portal.ninja2020.layout.clean')
@section('meta_title', ctrans('texts.purchase'))
2021-03-11 17:20:30 +01:00
@section('body')
2021-06-03 01:50:31 +02:00
@livewire('billing-portal-purchase', ['subscription' => $subscription, 'company' => $subscription->company, 'contact' => auth('contact')->user(), 'hash' => $hash, 'request_data' => $request_data, 'campaign' => request()->query('campaign') ?? null])
2021-03-11 17:20:30 +01:00
@stop
2021-03-15 17:33:27 +01:00
@push('footer')
<script>
function updateGatewayFields(companyGatewayId, paymentMethodId) {
document.getElementById('company_gateway_id').value = companyGatewayId;
document.getElementById('payment_method_id').value = paymentMethodId;
}
2021-03-16 14:35:57 +01:00
Livewire.on('beforePaymentEventsCompleted', () => document.getElementById('payment-method-form').submit());
2021-03-15 17:33:27 +01:00
</script>
@endpush