mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
ed4fff2385
- One time & subs ✅ - A table with all products included in subscription (qty, price, notes) ✅ - Two tables, one for subscriptions, one for one-time purchases ✅ - If no products, no table ✅ - Remove quantity from cached data that is being sent ✅ - Remove "billing_subscription_id" from data sent ✅
18 lines
699 B
PHP
18 lines
699 B
PHP
@extends('portal.ninja2020.layout.clean')
|
|
@section('meta_title', ctrans('texts.purchase'))
|
|
|
|
@section('body')
|
|
@livewire('billing-portal-purchase', ['subscription' => $subscription, 'contact' => auth('contact')->user(), 'hash' => $hash, 'request_data' => $request_data])
|
|
@stop
|
|
|
|
@push('footer')
|
|
<script>
|
|
function updateGatewayFields(companyGatewayId, paymentMethodId) {
|
|
document.getElementById('company_gateway_id').value = companyGatewayId;
|
|
document.getElementById('payment_method_id').value = paymentMethodId;
|
|
}
|
|
|
|
Livewire.on('beforePaymentEventsCompleted', () => document.getElementById('payment-method-form').submit());
|
|
</script>
|
|
@endpush
|