Recurly PHP 2.5.* in Laravel 5.1 getting 'Call to private method' error -


i'm in process of developing heavily recurly integrated platform users have option of adding/editing/removing features reflected in subscription pricing.

the environment project laravel 5.1 , attempting use recurly's php client simplify api integration. in order lot of recurly stuff work, had add namespacing recurly php files in order have them referenced , reference 1 inside laravels framework. i.e.

<?php  namespace app\libraries\recurly;  use datetime; use domdocument;  abstract class recurly_base { 

to 44 or class files involved in 2.5.* version of recurly php library.

i can use library generate subscriptions, time try update subscriptions, fatalerrorexception thrown php, , thrown same class exampled above.

call private method recurly_base::addlink() context 'app\libraries\recurly\recurly_base' 

this error thrown during block of code

        $user = $request->user();          $subscription = recurly_subscription::get($user->recurly_subscription_code);         $subscription->plan_code = '<plan_code>';          $user->subscription_pricing = $user->subscription_pricing + $newitemprice;         $user->updated_at = $user->freshtimestamp();           $subscription->unit_amount_in_cents =  $user->subscription_pricing;          $subscription->updateimmediately(); // <- offending line          $user->save(); 

it seems reason, recurly_base class cannot access it's own private method addlink.

i attempted resolve issue weakening visibility of recurly_base methods , values 'private'-ness of addlink wouldn't matter, fatalerrorexception still thrown.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -