Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Paypal\Model\ConfigFactory $configFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory, \Magento\Sales\Model\OrderFactory $orderFactory, Info $paypalInfo, OrderSender $orderSender, CreditmemoSender $creditmemoSender, array $data=[]) | |
processIpnRequest () | |
_registerPaymentPending () | |
![]() | |
__construct (\Magento\Paypal\Model\ConfigFactory $configFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\HTTP\Adapter\CurlFactory $curlFactory, array $data=[]) | |
getRequestData ($key=null) | |
Protected Member Functions | |
_getConfig () | |
_getOrder () | |
_processOrder () | |
_registerDispute () | |
_registerAdjustment () | |
_registerTransaction () | |
_registerPaymentCapture ($skipFraudDetection=false) | |
_registerPaymentDenial () | |
_registerPaymentFailure () | |
_registerMasspaymentsSuccess () | |
_registerPaymentReversal () | |
_registerPaymentRefund () | |
_registerPaymentVoid () | |
_importPaymentInformation () | |
_createIpnComment ($comment='', $addToHistory=false) | |
![]() | |
_postBack () | |
_filterPaymentStatus ($ipnPaymentStatus) | |
_debug () | |
_addDebugData ($key, $value) | |
Protected Attributes | |
$_order | |
$_orderFactory | |
$_paypalInfo | |
$orderSender | |
$creditmemoSender | |
![]() | |
$_config | |
$_ipnRequest | |
$_debugData = [] | |
$_configFactory | |
$_curlFactory | |
PayPal Instant Payment Notification processor model @SuppressWarnings(PHPMD.CouplingBetweenObjects)
__construct | ( | \Magento\Paypal\Model\ConfigFactory | $configFactory, |
\Psr\Log\LoggerInterface | $logger, | ||
\Magento\Framework\HTTP\Adapter\CurlFactory | $curlFactory, | ||
\Magento\Sales\Model\OrderFactory | $orderFactory, | ||
Info | $paypalInfo, | ||
OrderSender | $orderSender, | ||
CreditmemoSender | $creditmemoSender, | ||
array | $data = [] |
||
) |
\Magento\Paypal\Model\ConfigFactory | $configFactory | |
\Psr\Log\LoggerInterface | $logger | |
\Magento\Framework\HTTP\Adapter\CurlFactory | $curlFactory | |
\Magento\Sales\Model\OrderFactory | $orderFactory | |
Info | $paypalInfo | |
OrderSender | $orderSender | |
CreditmemoSender | $creditmemoSender | |
array | $data |
Definition at line 57 of file Ipn.php.
|
protected |
Generate an "IPN" comment with additional explanation. Returns the generated comment or order status history object
string | $comment | |
bool | $addToHistory |
Definition at line 577 of file Ipn.php.
|
protected |
Get config with the method code and store id and validate
Exception |
&content_ID= developer/e_howto_admin_IPNIntro
Definition at line 102 of file Ipn.php.
|
protected |
Load order
Exception |
Definition at line 138 of file Ipn.php.
|
protected |
Map payment information from IPN to payment object Returns true if there were changes in information
Detect pending payment, frauds TODO: implement logic in one place
Definition at line 510 of file Ipn.php.
|
protected |
IPN workflow implementation Everything should be added to order comments. In positive processing cases customer will get email notifications. Admin will be notified on errors.
Definition at line 156 of file Ipn.php.
|
protected |
Process adjustment notification
Definition at line 210 of file Ipn.php.
|
protected |
Process dispute notification
Definition at line 188 of file Ipn.php.
|
protected |
The status "Processed" is used when all Masspayments are successful
Definition at line 414 of file Ipn.php.
|
protected |
Process completed payment (either full or partial)
bool | $skipFraudDetection |
Definition at line 283 of file Ipn.php.
|
protected |
Process denied payment notification
Exception |
Definition at line 321 of file Ipn.php.
|
protected |
Treat failed payment as order cancellation
Definition at line 343 of file Ipn.php.
_registerPaymentPending | ( | ) |
Process payment pending notification
Exception |
Definition at line 355 of file Ipn.php.
|
protected |
Process a refund
Definition at line 455 of file Ipn.php.
|
protected |
Process payment reversal and cancelled reversal notification
Definition at line 425 of file Ipn.php.
|
protected |
Process voided authorization
Definition at line 486 of file Ipn.php.
|
protected |
Process regular IPN notifications
Definition at line 233 of file Ipn.php.
processIpnRequest | ( | ) |
Get ipn data, send verification to PayPal, run corresponding handler
Exception |
Implements IpnInterface.
Definition at line 80 of file Ipn.php.