diff --git a/.env.example b/.env.example index 0722505cd..7176bba1c 100644 --- a/.env.example +++ b/.env.example @@ -61,4 +61,10 @@ WAVE_BAR=true GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= -GOOGLE_CLIENT_REDIRECT="${APP_URL}/auth/google/callback" \ No newline at end of file +GOOGLE_CLIENT_REDIRECT="${APP_URL}/auth/google/callback" + +DUITKU_MERCHANT_CODE= +DUITKU_API_KEY= +DUITKU_CALLBACL_URL=https://example.com/callback/payment +DUITKU_RETURN_URL=https://example.com/callback/return +DUITKU_ENV=dev/production \ No newline at end of file diff --git a/composer.json b/composer.json index 54b8c332c..c27c1d74d 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,7 @@ "laravel/tinker": "^2.7", "livewire/livewire": "^2.4", "opcodesio/log-viewer": "^2.4", + "royryando/laravel-duitku": "^1.0", "tcg/voyager": "1.5.x-dev", "tymon/jwt-auth": "@dev" }, diff --git a/composer.lock b/composer.lock index 841028469..4254292d9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5ba3af99e9970415588cc675aa63f3eb", + "content-hash": "b020e96952ec2cad0d356b46dbc0893b", "packages": [ { "name": "arrilot/laravel-widgets", @@ -5612,6 +5612,65 @@ ], "time": "2022-09-16T03:22:46+00:00" }, + { + "name": "royryando/laravel-duitku", + "version": "v1.0.6", + "source": { + "type": "git", + "url": "https://github.com/royryando/laravel-duitku.git", + "reference": "d9949b4c620f34a5d719b933f036010240b518f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/royryando/laravel-duitku/zipball/d9949b4c620f34a5d719b933f036010240b518f2", + "reference": "d9949b4c620f34a5d719b933f036010240b518f2", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/guzzle": "^6.3 || ^7.0", + "php": ">=5.5" + }, + "require-dev": { + "orchestra/testbench": "^3.1.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Royryando\\Duitku\\DuitkuServiceProvider" + ], + "aliases": { + "Duitku": "Royryando\\Duitku\\DuitkuProcessor" + } + } + }, + "autoload": { + "psr-4": { + "Royryando\\Duitku\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roy Habeahan", + "email": "hi@royryando.me" + } + ], + "description": "A simple Duitku payment gateway library for Laravel.", + "keywords": [ + "duitku", + "laravel" + ], + "support": { + "issues": "https://github.com/royryando/laravel-duitku/issues", + "source": "https://github.com/royryando/laravel-duitku/tree/v1.0.6" + }, + "time": "2021-08-12T03:43:54+00:00" + }, { "name": "stella-maris/clock", "version": "0.1.6",