예제 #1
0
 /**
  * For Digital Goods purchases, PayPal requires the PAYMENTREQUEST_n_ITEMAMT. This function sets the 'items' flag to required
  * then calls @see parent::setup_purchase() to complete the payment.
  *
  * @uses self::requires() to flag 'items' as required
  * @uses parent::setup_purchase() to create and make the request.
  * @return PHP_Merchant_Paypal_Express_Checkout_Response An object containing the details of PayPal's response to the request.
  */
 public function purchase($options = array(), $action = 'Sale')
 {
     $options['no_shipping'] = true;
     return parent::purchase($options, $action);
 }
 /**
  * For Digital Goods purchases, PayPal requires the PAYMENTREQUEST_n_ITEMAMT. This function sets the 'items' flag to required
  * then calls @see parent::setup_purchase() to complete the payment. 
  * 
  * @uses self::requires() to flag 'items' as required
  * @uses parent::setup_purchase() to create and make the request.
  * @return PHP_Merchant_Paypal_Express_Checkout_Response An object containing the details of PayPal's response to the request. 
  */
 public function purchase($options = array(), $action = 'Sale')
 {
     return parent::purchase($options, $action);
 }
예제 #3
0
 /**
  * For Digital Goods purchases, PayPal requires the PAYMENTREQUEST_n_ITEMAMT. This function sets the 'items' flag to required
  * then calls @see parent::setup_purchase() to complete the payment. 
  * 
  * @uses self::requires() to flag 'items' as required
  * @uses parent::setup_purchase() to create and make the request.
  * @return PHP_Merchant_Paypal_Express_Checkout_Response An object containing the details of PayPal's response to the request. 
  */
 public function purchase($options = array())
 {
     return parent::purchase($options);
 }