@extends('user.layout')
@includeIf('user.partials.rtl-style')
@section('content')
@if ($message = Session::get('error'))
{{ $message }}
@endif
@if (!empty($membership) && ($membership->package->term == 'lifetime' || $membership->is_trial == 1))
{{ __('If you purchase this package') }} ({{ $package->title }}),
{{ __('then your current package') }} ({{ $membership->package->title }}
@if ($membership->is_trial == 1) {{ __('Trial') }} @endif)
{{ __('will be replaced immediately') }}
@endif
@endsection
@section('scripts')
@php
$anetCardError = __('Please provide valid credit card number');
$anetYearError = __('Please provide valid expiration year');
$anetMonthError = __('Please provide valid expiration month');
$anetExpirationDateError = __('Expiration date must be in the future');
$anetCvvInvalidError = __('Please provide valid CVV');
@endphp
{{-- START: Authorize.net Scripts --}}
@php
$anet = App\Models\PaymentGateway::find(20);
$anerInfo = $anet->convertAutoData();
$anetTest = $anerInfo['sandbox_check'];
if ($anetTest == 1) {
$anetSrc = 'https://jstest.authorize.net/v1/Accept.js';
} else {
$anetSrc = 'https://js.authorize.net/v1/Accept.js';
}
@endphp
{{-- END: Authorize.net Scripts --}}
@endsection