Excuse me, I want to use this sdk GitHub
I try include file php into laravel controller , but is not work.
then, I'll update composer.json, using PSR-4 .. is class XXX/XXX/ not found..
error message Class 'App\Http\Controllers\ECPay_AllInOne' not found
how can I do? please help me, thanks~
my project sdk file :
composer.json
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"ECPaySDK\\": "ECPaySDK/"
},
"files": [
"ECPaySDK/ECPayPaymentIntegration.php"
]
},
my controller
<?php
namespace App\Http\Controllers;
use ECPaySDK;
use Illuminate\Http\Request;
use Mail;
use App\Http\Requests;
use App\Travel_user;
use App\Travel_user_place;
use App\Place;
use App\Files;
use App\House;
use DB;
use Illuminate\Support\Facades\File;
class BackendController extends Controller
sdk class
<?php
namespace ECPaySDK;
abstract class ECPay_PaymentMethod {
const ALL = 'ALL';