예제 #1
0
 /**
  * Create and print a "Pay with Paypal" button
  *
  * @param float $amount
  * @param string $description
  * @param string $itemnumber (publish fee, premium, pack and which category)
  * @param string $extra custom variables
  */
 public static function button($amount = '0.00', $description = '', $itemnumber = '101', $extra_array = null)
 {
     if (osc_get_preference('paypal_standard', 'payment') == 1) {
         Paypal::standardButton($amount, $description, $itemnumber, $extra_array);
     } else {
         Paypal::dgButton($amount, $description, $itemnumber, $extra_array);
     }
 }