public function register()
{
$this->app->bind(PayPartsInterface::class, function() {
if(empty(config('payparts.store_id'))){
throw new \InvalidArgumentException('store_id is empty');
}
if(empty(config('payparts.password'))){
throw new \InvalidArgumentException('password is empty');
}
$service = new PayPartsService(
config('payparts.store_id'),
config('payparts.password'),
);
return $service;
});
}