Eventbrite Payment

Figure 1. Instantiate Payment
//user type
$payment = eden('eventbrite')->payment($_SESSION['ebtoken']);
//personal type
$payment = eden('eventbrite')->payment('[USER_KEY]', '[APP_SECRET]');
Figure 2. Usage: Create or Update Payment Option
$payment
	->setEvent($id)			//required
	->acceptCash()			//required to accept one of cash, check, google, invoice or paypal
	->acceptCheck()			//required to accept one of cash, check, google, invoice or paypal
	->acceptGoogle()		//required to accept one of cash, check, google, invoice or paypal
	->acceptInovice()		//required to accept one of cash, check, google, invoice or paypal
	->acceptPaypal()		//required to accept one of cash, check, google, invoice or paypal
	->setCashInstructions($instructions)	//optional
	->setCheckInstructions($instructions)	//optional
	->setGoogleMerchantId($id)				//required if google
	->setGoogleMerchantKey($key)			//required if google
	->setInvoiceInstructions($instructions)	//optional
	->setPaypalEmail($email)				//required if paypal
	->update();
Figure 3. Payment Methods
Method Arguments Returns Description
$payment->acceptCash(); none Eden_Eventbrite_Payment Accept cash
$payment->acceptCheck(); none Eden_Eventbrite_Payment Accept check
$payment->acceptGoogle(); none Eden_Eventbrite_Payment Accept Google Checkout
$payment->acceptInovice(); none Eden_Eventbrite_Payment Accept invoice
$payment->acceptPaypal(); none Eden_Eventbrite_Payment Accept PayPal
$payment->setCashInstructions($instructions);
  1. string
Eden_Eventbrite_Payment Set cash instructions
$payment->setCheckInstructions($instructions);
  1. string
Eden_Eventbrite_Payment Set check instructions
$payment->setEvent($id);
  1. int
Eden_Eventbrite_Payment Set event ID
$payment->setGoogleMerchantId($id);
  1. string
Eden_Eventbrite_Payment Set your google merchant ID
$payment->setGoogleMerchantKey($key);
  1. string
Eden_Eventbrite_Payment Set google merchant key
$payment->setInvoiceInstructions($instructions);
  1. string
Eden_Eventbrite_Payment Set invoice instructions
$payment->setPaypalEmail($email);
  1. string
Eden_Eventbrite_Payment Accept PayPal Email
$payment->update(); none array Send update

© 2012 Openovate Labs. All rights reserved.