IpnListener
extends AbstractNotificationListener
in package
Table of Contents
- LIVE_URL = 'https://www.paypal.com/cgi-bin/webscr'
- SANDBOX_URL = 'https://www.sandbox.paypal.com/cgi-bin/webscr'
- $gatewayId : string
- $input : array<string|int, mixed>
- $isSandbox : bool
- $payment : Payment
- $urlKey : string
- $urlValue : string
- $businessEmail : string
- $verificationDisabled : bool
- __construct() : mixed
- checkRequest() : mixed
- fireExit() : mixed
- getNotifyUrl() : string
- paymentCompleted() : bool
- paymentFailed() : bool
- paymentOnHold() : bool
- paymentRefunded() : mixed
- initUrlIdentificationValue() : string
- parseInput() : array<string|int, mixed>
- process() : mixed
- retrievePayment() : Payment|null
- validate() : bool
- checkBusinessEmail() : bool
- Verify payment recipient
- checkCurrencyCode() : bool
- Verify payment currency
- checkPaymentAmount() : bool
- checkPaymentKey() : bool
- processWebAccept() : bool
- Process Web Accept
- retrievePendingReasonNote() : string
- updatePaymentMeta() : mixed
- verifyRequest() : bool
Constants
LIVE_URL
public
mixed
LIVE_URL
= 'https://www.paypal.com/cgi-bin/webscr'
SANDBOX_URL
public
mixed
SANDBOX_URL
= 'https://www.sandbox.paypal.com/cgi-bin/webscr'
Properties
$gatewayId
protected
string
$gatewayId
= ''
$input
protected
array<string|int, mixed>
$input
$isSandbox
protected
bool
$isSandbox
= false
$payment
protected
Payment
$payment
$urlKey
protected
string
$urlKey
= 'mphb-listener'
$urlValue
protected
string
$urlValue
= ''
$businessEmail
private
string
$businessEmail
$verificationDisabled
private
bool
$verificationDisabled
= false
Methods
__construct()
public
__construct([mixed $atts = array() ]) : mixed
Parameters
- $atts : mixed = array()
Return values
mixed —checkRequest()
public
checkRequest() : mixed
Tags
Return values
mixed —fireExit()
public
fireExit(bool $succeed) : mixed
Parameters
- $succeed : bool
Tags
Return values
mixed —getNotifyUrl()
public
getNotifyUrl() : string
Return values
string —paymentCompleted()
public
paymentCompleted([string $completeLog = '' ]) : bool
Parameters
- $completeLog : string = ''
-
Optional.
Return values
bool —paymentFailed()
public
paymentFailed([string $failLog = '' ]) : bool
Parameters
- $failLog : string = ''
-
Optional.
Return values
bool —paymentOnHold()
public
paymentOnHold([string $onHoldLog = '' ]) : bool
Parameters
- $onHoldLog : string = ''
Return values
bool —paymentRefunded()
public
paymentRefunded([string $refundLog = '' ]) : mixed
Parameters
- $refundLog : string = ''
-
Optional.
Return values
mixed —initUrlIdentificationValue()
protected
initUrlIdentificationValue() : string
Return values
string —parseInput()
protected
parseInput() : array<string|int, mixed>
Return values
array<string|int, mixed> —process()
protected
process() : mixed
Return values
mixed —retrievePayment()
protected
retrievePayment() : Payment|null
Return values
Payment|null —validate()
protected
validate(array<string|int, mixed> $input) : bool
Parameters
- $input : array<string|int, mixed>
Return values
bool —checkBusinessEmail()
Verify payment recipient
private
checkBusinessEmail() : bool
Return values
bool —checkCurrencyCode()
Verify payment currency
private
checkCurrencyCode() : bool
Return values
bool —checkPaymentAmount()
private
checkPaymentAmount() : bool
Return values
bool —checkPaymentKey()
private
checkPaymentKey() : bool
Return values
bool —processWebAccept()
Process Web Accept
private
processWebAccept() : bool
Return values
bool —retrievePendingReasonNote()
private
retrievePendingReasonNote() : string
Return values
string —updatePaymentMeta()
private
updatePaymentMeta() : mixed
Return values
mixed —verifyRequest()
private
verifyRequest(array<string|int, mixed> $input) : bool
Parameters
- $input : array<string|int, mixed>
-
Requested Data