Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Dec 13, 2023
1 parent 06627f2 commit 45b7b8c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/DonationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function makeDonation(Donation $donation)
{
$service = new EuPlatescService($donation->organization_id);
$data = $service->getPaymentData($donation);
// dd($data);

return Inertia::render('Public/Donor/Donor', [
'data' => $data,
Expand Down
5 changes: 5 additions & 0 deletions resources/js/Pages/Public/Donor/Donor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
<script setup>
import Head from '@/Components/Head.vue';
import PageLayout from '@/Layouts/PageLayout.vue';
import {onMounted} from "vue";
const props = defineProps({
data: Object,
});
onMounted(() => {
document.getElementById('paymentForm').submit();
});
</script>
14 changes: 1 addition & 13 deletions resources/js/Pages/Public/Donor/ThankYou.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,9 @@

<div class="w-full lg:w-1/2 lg:px-10">
<div class="bg-white shadow-lg">
<div class="p-8 space-y-8">
<div
class="inline-flex items-center justify-start px-3 py-1 text-base font-semibold rounded-full cursor-pointer text-primary-500 bg-primary-50"
>
{{ $t('woohoo') }}
</div>
<h3 class="text-6xl font-bold leading-6 text-gray-900">{{ donation.place }}</h3>
<p class="text-lg text-gray-500">
{{ $t('donations_place_1') }} {{ donation.place }} {{ $t('donations_place_2') }}
</p>
</div>

<div class="px-10 py-8 space-y-6 bg-gray-50">
<div
v-for="info in profile.donations_status"
v-for="info in profile"
class="flex items-center justify-start gap-x-4"
>
<SvgLoader class="shrink-0 fill-gray-50" name="check" />
Expand Down
4 changes: 2 additions & 2 deletions routes/donations.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
use Illuminate\Support\Facades\Route;

/* Public routes. */
Route::get('/doneaza/{donation:uuid}', [\App\Http\Controllers\DonationController::class, 'makeDonation'])->name('donation.make');
Route::get('/doneaza/callbacks/{uuid}', [\App\Http\Controllers\DonationController::class, 'makeDonation'])->name('donation.callback');
Route::post('/doneaza/thanks/{uuid}', [\App\Http\Controllers\DonationController::class, 'thankYou'])->name('donation.thanks');
Route::get('/doneaza/callbacks/{uuid}', [\App\Http\Controllers\DonationController::class, 'makeDonation'])->name('donation.callback');
Route::get('/doneaza/{donation:uuid}', [\App\Http\Controllers\DonationController::class, 'makeDonation'])->name('donation.make');

0 comments on commit 45b7b8c

Please sign in to comment.