amitg, on 11 June 2011 - 02:02 AM, said:
<?php
$buttonManager = Yii::app()->getModule('payPal')->buttonManager;
$nvp = array(
'BUTTONTYPE'=>'BUYNOW',
'L_BUTTONVAR0'=>'currency_code=USD',
'L_BUTTONVAR1'=>'item_name=My button',
'L_BUTTONVAR2'=>'amount=20.00',
);
$buttonManager->createButton('My button', $nvp);
?>
it first call the create button manager after making object of button manager class
the createbutton check response and if it is true then it will proceed otherwise return false
i get success in ACK variable but still not getting the button
what else i have to do to make it possible please help me fast asap thanka
The code above will create a hosted button stored at PayPal, it is also stored locally in your database (or a php file, if you're using PPPhpButtonManager). To view the button you need to fetch the HTML code using
$buttonManager->getButton('My button');.The button should be created only once, if you do it multiple times, you will create a bunch of new buttons stored at PayPal.

Help















