Menu
  • HOME
  • TAGS

Using classes without namespace with Yii2

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...

How to integrate 2checkout payment gateway in ruby

ruby-on-rails,2checkout

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...