Class escrow_buynow

Description

Function to handle escrow payments for buy now items

  • author: ILance
  • version: $Revision: 1.0.0 $

Located in /api/class.escrow_buynow.inc.php (line 28)

escrow
   |
   --escrow_buynow
Method Summary
array instant_purchase_now ([string $method = ''], [integer $projectid = 0], [integer $qty = 0], [integer $amount = 0], [integer $total = 0], [integer $seller_id = 0], [integer $buyer_id = 0], [bool $shipping_address_required = 1], [integer $shipping_address_id = 0], [integer $accountid = 0], [string $buyerpaymethod = 'Unknown'], [integer $buyershipcost = 0], [integer $buyershipperid = 0])
Methods
instant_purchase_now (line 52)

Function to process a purchase now escrow payment for a particular user for a specific amount. This function takes final value fee and insertion fee permission exemptions into consideration.

This function is also responsible for updating `buynow_purchases` field in the listings table so members can sort their listings based on most/least item sales.

  • return: Returns true or false if payment could be completed including order id
array instant_purchase_now ([string $method = ''], [integer $projectid = 0], [integer $qty = 0], [integer $amount = 0], [integer $total = 0], [integer $seller_id = 0], [integer $buyer_id = 0], [bool $shipping_address_required = 1], [integer $shipping_address_id = 0], [integer $accountid = 0], [string $buyerpaymethod = 'Unknown'], [integer $buyershipcost = 0], [integer $buyershipperid = 0])
  • string $method: payment method (offline or account)
  • integer $projectid: project id
  • integer $qty: order qty
  • integer $amount: order amount
  • integer $total: order total amount
  • integer $seller_id: seller id
  • integer $buyer_id: buyer id
  • bool $shipping_address_required: is shipping address required?
  • integer $shipping_address_id: shipping address id profile for buyers location
  • integer $accountid: account id
  • string $buyerpaymethod: buyers selected payment method string (just the title to show on buying/selling act)
  • integer $buyershipcost: buyers selected shipping cost
  • integer $buyershipperid: buyers selected shipping service id

Inherited Methods

Inherited From escrow

escrow::cancel_unlinked_escrow_invoices()
escrow::fetch_escrow_commission()
escrow::fetch_escrow_commission_logic()
escrow::fetch_escrow_opponent()
escrow::fetch_escrow_owner()
escrow::status()

Documentation generated on Mon, 08 Aug 2011 17:40:54 +0200 by phpDocumentor 1.4.1