Paypal Button

Instantiate Button
$button = eden('paypal')->button('[API_USERNAME]', '[API_PASSWORD]', '[API_SIGNATURE]');
Button Methods
Method Arguments Returns Description
$button->getButton(); none string Initiates the creation of a billing agreement.
$button->getInventory(); none string Determine the inventory levels and other inventory-related information for a button and menu items associated with the button. Typically, you call BMGetInventory to obtain field values before calling BMSetInventory to change the inventory levels.
$button->remove(); none string Change the status of a hosted button. Currently, you can only delete a button.
$button->search(); none string Obtain a list of your hosted Website Payments Standard buttons.
$button->setAmount($amount);
  1. string
Eden_Paypal_Button The base amount to bill for the cycle.
$button->setBillingFrequency($billingFrequency);
  1. string
Eden_Paypal_Button The installment cycle frequency in units, e.g. if the billing frequency is 2 and the billing period is Month, the billing cycle is every 2 months. The default billing frequency is 1.
$button->setBillingPeriod($billingPeriod);
  1. string
Eden_Paypal_Button Valid values are NoBillingPeriodType - None (default) Day Week SemiMonth Month Year
$button->setBillingTotal($billingTotal);
  1. string
Eden_Paypal_Button The total number of billing cycles, regardless of the duration of a cycle; 1 is the default
$button->setButtonId($setbuttonId);
  1. string The
  2. - hosted button id
Eden_Paypal_Button Set hosted button id
$button->setEndDate($end);
  1. string
Eden_Paypal_Button Ending date for the search. The value must be in UTC/GMT format
$button->setName($name);
  1. string
Eden_Paypal_Button It is one or more variables, in which n is a digit between 0 and 4, inclusive, for hosted buttons; otherwise, it is a digit between 0 and 9, inclusive
$button->setOptionPrice($optionPrice);
  1. string
Eden_Paypal_Button It is a list of variables for each OPTIONnNAME, in which x is a digit between 0 and 9, inclusive
$button->setOptionSelect($optionSelect);
  1. string
Eden_Paypal_Button It is a list of variables for each OPTIONnNAME, in which x is a digit between 0 and 9, inclusive
$button->setShippingAmount($shippingAmount);
  1. string
Eden_Paypal_Button The shipping amount to bill for the cycle, in addition to the base amount.
$button->setStartDate($start);
  1. string
Eden_Paypal_Button Starting date for the search. The value must be in UTC/GMT format
$button->setTaxAmount($taxAmount);
  1. string
Eden_Paypal_Button The tax amount to bill for the cycle, in addition to the base amount.
$button->setToAutobilling(); none Eden_Paypal_Button Set button type to Autobilling
$button->setToBuyNow(); none Eden_Paypal_Button Set button type to buy now
$button->setToCart(); none Eden_Paypal_Button Set button type to CART
$button->setToDonate(); none Eden_Paypal_Button Set button type to Donate
$button->setToGiftCertificate(); none Eden_Paypal_Button Set button type to Gift Certificate
$button->setToPayment(); none Eden_Paypal_Button Set button type to Payment
$button->setToPaymentPlan(); none Eden_Paypal_Button Set button type to Payment Plan
$button->setToSubscribe(); none Eden_Paypal_Button Set button type to Subscribe
$button->setToUnSubscribe(); none Eden_Paypal_Button Set button type to UnSubscribe
$button->setToViewCart(); none Eden_Paypal_Button Set button type to View Cart
$button->setType();
  1. string
Eden_Paypal_Button Valid values are FULL - Payment in full VARIABLE - Variable installments EMI - Equal installments
$button->setTypeFull();
  1. string
Eden_Paypal_Button Valid values are FULL - Payment in full VARIABLE - Variable installments EMI - Equal installments
$button->update(); none string Updates the an agreeement

© 2012 Openovate Labs. All rights reserved.