Support > Documentation > PayplansPayment

PayplansPayment


PayplansPayment object allows you to perform lots of actions without writing a single query on Payment entity.

Get/Set Payment App Information

public function getApp($requireinstance = false)

$requireinstance:- Can be True or False.

If $requireInstance is PAYPLANS_INSTANCE_REQUIRE(true), then return instance of payment app else payment app id.

public function setApp($app)

param $app:-instance of App.

Set the id of App in current object.

Get name of app

public function getAppName()

Return the instance of  payment app that is set in the current object.

Get buyer of payment

public function getBuyer($requireinstance=false)

param $requireinstance :-Can be True or False.

If $requireinstance is PAYPLANS_INSTANCE_REQUIRE(true), then return user instance else return buyer-id

Get Invoice for payment

public function getInvoice($requireInstance = false)

param $requireInstance:-Can be True or False

If $requireInstance=PAYPLANS_INSTANCE_REQUIRE(true),then return the instance of current invoice else return invoice id.

Get Gateway Parameter

public function getGatewayParams()

Return the parameter of gateway

Created/Modified date of Payment

public function getCreatedDate()

Return created date of Payment.

public function getModifiedDate()

Return the date, when payment was last modified.

Get plans for payment

public function getPlans($requireInstance = false)

param $requireInstance:- Can be true or false.

If $requireInstance is true,return the instance of plan, else return the plan id.

Get Transaction for payment

public function getTransactions()

Return an array of transaction set on current object.

Refresh Object

public function refresh()

Refresh the current object.

Reset Object

public function reset()

Reset the entries of current object.

Load Transaction

protected function _loadTransactions($payment_id)

Return all transaction records of  payment_id.


  • Friday, 13 April 2012

Disqus Comments

blog comments powered by Disqus

PayPlans + Stackideas Pack!