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>
|
||||
Reference in New Issue
Block a user