Jump to content

jamshaid_0007

Members
  • Posts

    6
  • Joined

  • Last visited

About jamshaid_0007

  • Birthday 01/13/1990

Contact Methods

  • MSN
    jamshaid_0007@hotmail.com
  • Yahoo
    jamshaid.sadiq@yahoo.com
  • Skype
    jamshaid.sadiq1

Profile Information

  • Gender
    Male
  • Location
    Lahore punjab Pakistan
  • Age
    23

jamshaid_0007's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i am integrating paypal digital payment method. i downloaded lib from github and inclued in app/vendor but when i run this code it gives error: Fatal Error Error: Cannot redeclare class Digital_Goods File: /var/www/hs/GenII/app/Vendor/paypal-digital-goods/paypal-digital-goods.class.php Line: 13 path of all files:/var/www/hs/GenII/app/Vendor/paypal-digital-goods/ following are lib clases paypal-configuration.class.php paypal-digital-goods.class.php paypal-subscription.class.php here is controller action where i included these classes public function set_credentials() { App::import('Vendor', 'Paypal-configurationClass',array('file' => 'paypal-digital-goods' . DS . 'paypal-configuration.class.php')); App::import('Vendor', 'Paypal-subscriptionClass', array('file' => 'paypal-digital-goods' . DS . 'paypal-subscription.class.php')); App::import('Vendor', 'Paypal-digital-goodsClass', array('file' => 'paypal-digital-goods'. DS . 'paypal-digital-goods.class.php')); //App::import('Vendor', 'paypal-purchaseClass', array('file' => 'paypal-digital-goods' . DS . 'paypal-purchase.class.php')); $base_url = $_SERVER['SERVER_NAME'].Router::url('/'); $returnUrlcan = "returnUrl?payPal=cancel"; $returnUrlpaid = "returnUrl?payPal=paid"; $returnUrlnotify = "returnUrl?payPal=notify"; PayPal_Digital_Goods_Configuration::username( 'my id' ); PayPal_Digital_Goods_Configuration::password( '********' ); PayPal_Digital_Goods_Configuration::signature( 'dsdfdsfsfd' ); PayPal_Digital_Goods_Configuration::return_url($this->get_script_uri( $returnUrlpaid ) ); PayPal_Digital_Goods_Configuration::cancel_url($this->get_script_uri( $returnUrlcan ) ); PayPal_Digital_Goods_Configuration::business_name( 'Demo Store' ); PayPal_Digital_Goods_Configuration::notify_url($this->get_script_uri( $returnUrlnotify) ); // Uncomment the line below to switch to the live PayPal site //PayPal_Digital_Goods_Configuration::environment( 'live' ); if( PayPal_Digital_Goods_Configuration::username() == 'your_api_username' || PayPal_Digital_Goods_Configuration::password() == 'your_api_password' || PayPal_Digital_Goods_Configuration::signature() == 'your_api_signature' ) exit( 'You must set your API credentials in ' . __FILE__ . ' for this example to work.' ); }
  2. How to create thumbnails of docx,pptx,pdf files while uoloadling them on amaazone s3 or already uploaded files on s3 in cake php...
  3. my document url is :https://s3.amazonaws...les/8564ht.docx my html code is: <a href="http://docs.google.com/viewer?url=https%3A%2F%2Fs3.amazonaws...les%2F8564ht.docx">View</a> it works for doc,ppt but when i view docx,pptx and xlsx it show following result
  4. my document url is :https://s3.amazonaws.com/user.documents/files/8564ht.docx it works for doc,ppt but i view docx,pptx and xlsx it show following results
  5. i have some records in database... i want to update that records if the records does not exist then new record inserted how??????
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.