php,namespaces,yii2,2checkout,psr-4
When the class does not have namespace it means it's in the root namespace. Option 1: use Twocheckout; ... Twocheckout::format('json'); Option 2: \Twocheckout::format('json'); For example, PHPExcel extension also doesn't have namespaces, similar question was answered on official forum. Related questions: Importing class without namespace to namespaced class How to use...
I have solved this issue by just creating a config/initializers in that 2checkout.rb and mentioned there a single line i.e Twocheckout::Checkout.sandbox(true); By this we can redirect to URL of sandbox.2checkout.com from your test account If you are using 2checkout sandbox account for test integration in ruby application you have follow...