tipo: modificación del cpanel y gitignore de la carpeta vendor
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
$transaction = $checkout->getTransaction();
|
||||
$items = $checkout->getItems();
|
||||
$customer = $checkout->getCustomer();
|
||||
$custom = $checkout->getCustomData();
|
||||
?>
|
||||
|
||||
<a
|
||||
href='#!'
|
||||
@if ($transaction)
|
||||
data-transaction-id='{{ $transaction['id'] }}'
|
||||
@else
|
||||
data-items='{!! json_encode($items) !!}'
|
||||
@endif
|
||||
data-allow-logout='false'
|
||||
@if ($customer) data-customer-id='{{ $customer->paddle_id }}' @endif
|
||||
@if ($custom) data-custom-data='{{ json_encode($custom) }}' @endif
|
||||
@if ($returnUrl = $checkout->getReturnUrl()) data-success-url='{{ $returnUrl }}' @endif
|
||||
{{ $attributes->merge(['class' => 'paddle_button']) }}
|
||||
>
|
||||
{{ $slot }}
|
||||
</a>
|
||||
@@ -0,0 +1,4 @@
|
||||
<div {{ $attributes->merge(['class' => $id]) }}></div>
|
||||
<script type="text/javascript">
|
||||
Paddle.Checkout.open(@json($options()));
|
||||
</script>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
$seller = array_filter([
|
||||
'pwAuth' => (int) config('cashier.retain_key'),
|
||||
]);
|
||||
|
||||
if (config('cashier.client_side_token')) {
|
||||
$seller['token'] = config('cashier.client_side_token');
|
||||
} elseif (config('cashier.seller_id')) {
|
||||
$seller['seller'] = (int) config('cashier.seller_id');
|
||||
}
|
||||
|
||||
if (isset($seller['pwAuth']) && Auth::check() && $customer = Auth::user()->customer) {
|
||||
$seller['pwCustomer'] = ['id' => $customer->paddle_id];
|
||||
}
|
||||
|
||||
$nonce = $nonce ?? '';
|
||||
?>
|
||||
|
||||
<script src="https://cdn.paddle.com/paddle/v2/paddle.js" @if ($nonce) nonce="{{ $nonce }}" @endif></script>
|
||||
|
||||
@if (config('cashier.sandbox'))
|
||||
<script type="text/javascript" @if ($nonce) nonce="{{ $nonce }}" @endif>
|
||||
Paddle.Environment.set('sandbox');
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<script type="text/javascript" @if ($nonce) nonce="{{ $nonce }}" @endif>
|
||||
Paddle.Initialize(@json($seller));
|
||||
</script>
|
||||
Reference in New Issue
Block a user