PHP code example of wall0ck / omise
1. Go to this page and download the library: Download wall0ck/omise library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wall0ck / omise example snippets
php artisan vendor:publish --tag=config
$sourceId = $request->input('source_id');
$charge = OmiseCharge::retrieve($sourceId);
$response = response()->json(['status' => $charge['status']]);
dd($response);