Class Paypal
This class is used for generation of buttons and handling of paypal responses
public
|
#
__construct(
Create a new paypal object |
public
string
|
#
getButton(
Get a button as html Use getButtonParams and getButtonAction if you need to customise |
public
array
|
#
getButtonParams(
Get paypal button params for this payment Should be posted to url getButtonAction use <input type="hidden" name="$key" value="$value" /> for each element of the array returned |
public
string
|
|
public
|
#
handleNotification( array $vars = null )
Call this function on your instant notification url (IN) And success url to use payment data transfer (PDT) |
public
boolean
|
#
sendPayment( string|string[] $email, float|double[] $amount, string|string[] $id = '', string|string[] $note = '', string $subject = null )
Send a payment to an email address Users MassPayments API Warning, this works straight away, no confirming or anything Money is sent instantly |
public
boolean
|
#
refundPayment( string $transactionId, string $invoiceId = null, string $type = 'Full' )
Refund the payment |