Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | TRXTYPE_AUTH_ONLY = 'A' |
const | TRXTYPE_SALE = 'S' |
const | TRXTYPE_CREDIT = 'C' |
const | TRXTYPE_DELAYED_CAPTURE = 'D' |
const | TRXTYPE_DELAYED_VOID = 'V' |
const | TRXTYPE_DELAYED_VOICE = 'F' |
const | TRXTYPE_DELAYED_INQUIRY = 'I' |
const | TRXTYPE_ACCEPT_DENY = 'U' |
const | UPDATEACTION_APPROVED = 'APPROVE' |
const | UPDATEACTION_DECLINED_BY_MERCHANT = 'FPS_MERCHANT_DECLINE' |
const | TENDER_CC = 'C' |
const | TRANSACTION_URL = 'https://payflowpro.paypal.com/transaction' |
const | TRANSACTION_URL_TEST_MODE = 'https://pilot-payflowpro.paypal.com/transaction' |
const | RESPONSE_CODE_APPROVED = 0 |
const | RESPONSE_CODE_INVALID_AMOUNT = 4 |
const | RESPONSE_CODE_FRAUDSERVICE_FILTER = 126 |
const | RESPONSE_CODE_DECLINED = 12 |
const | RESPONSE_CODE_DECLINED_BY_FILTER = 125 |
const | RESPONSE_CODE_DECLINED_BY_MERCHANT = 128 |
const | RESPONSE_CODE_CAPTURE_ERROR = 111 |
const | RESPONSE_CODE_VOID_ERROR = 108 |
const | PNREF = 'pnref' |
Protected Member Functions | |
_getCaptureAmount ($amount) | |
_buildPlaceRequest (DataObject $payment, $amount) | |
transactionInquiryRequest (InfoInterface $payment, $transactionId) | |
Static Protected Member Functions | |
static | _isTransactionUnderReview ($status) |
Protected Attributes | |
$_responseParamsMappings | |
$_code = \Magento\Paypal\Model\Config::METHOD_PAYFLOWPRO | |
$_isGateway = true | |
$_canAuthorize = true | |
$_canCapture = true | |
$_canCapturePartial = true | |
$_canRefund = true | |
$_canRefundInvoicePartial = true | |
$_canVoid = true | |
$_canUseInternal = true | |
$_canUseCheckout = true | |
$_canSaveCc = false | |
$_isProxy = false | |
$_canFetchTransactionInfo = true | |
$_canReviewPayment = true | |
$_clientTimeout = 45 | |
$_debugReplacePrivateDataKeys = ['user', 'pwd', 'acct', 'expdate', 'cvv2'] | |
$storeManager | |
$configFactory | |
Payflow Pro payment gateway model @SuppressWarnings(PHPMD.TooManyFields) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 30 of file Payflowpro.php.
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory, | ||
\Magento\Framework\Api\AttributeValueFactory | $customAttributeFactory, | ||
\Magento\Payment\Helper\Data | $paymentData, | ||
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, | ||
\Magento\Payment\Model\Method\Logger | $logger, | ||
\Magento\Framework\Module\ModuleListInterface | $moduleList, | ||
\Magento\Framework\Stdlib\DateTime\TimezoneInterface | $localeDate, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
ConfigInterfaceFactory | $configFactory, | ||
Gateway | $gateway, | ||
HandlerInterface | $errorHandler, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource = null , |
||
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null , |
||
array | $data = [] |
||
) |
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory | |
\Magento\Framework\Api\AttributeValueFactory | $customAttributeFactory | |
\Magento\Payment\Helper\Data | $paymentData | |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
\Magento\Payment\Model\Method\Logger | $logger | |
\Magento\Framework\Module\ModuleListInterface | $moduleList | |
\Magento\Framework\Stdlib\DateTime\TimezoneInterface | $localeDate | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
ConfigInterfaceFactory | $configFactory | |
Gateway | $gateway | |
HandlerInterface | $errorHandler | |
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource | |
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
array | $data | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 297 of file Payflowpro.php.
|
protected |
Return request object with information for 'authorization' or 'sale' action
Object | Payment | $payment | |
float | $amount |
Definition at line 608 of file Payflowpro.php.
|
protected |
Get capture amount
float | $amount |
Definition at line 398 of file Payflowpro.php.
|
staticprotected |
Check whether the transaction is in payment review status
string | $status |
Definition at line 558 of file Payflowpro.php.
acceptPayment | ( | InfoInterface | $payment | ) |
Attempt to accept a pending payment
InfoInterface | $payment |
Definition at line 674 of file Payflowpro.php.
addRequestOrderInfo | ( | DataObject | $request, |
Order | $order | ||
) |
Add order details to payment request
DataObject | $request | |
Order | $order |
Definition at line 876 of file Payflowpro.php.
assignData | ( | DataObject | $data | ) |
Assign data to info model instance
array | DataObject | $data |
Definition at line 896 of file Payflowpro.php.
authorize | ( | \Magento\Payment\Model\InfoInterface | $payment, |
$amount | |||
) |
Authorize payment
InfoInterface | Payment | Object | $payment | |
float | $amount |
Definition at line 381 of file Payflowpro.php.
cancel | ( | \Magento\Payment\Model\InfoInterface | $payment | ) |
Attempt to void the authorization on cancelling
InfoInterface | Object | $payment |
Definition at line 493 of file Payflowpro.php.
canVoid | ( | ) |
capture | ( | \Magento\Payment\Model\InfoInterface | $payment, |
$amount | |||
) |
Capture payment
InfoInterface | Payment | Object | $payment | |
float | $amount |
Definition at line 415 of file Payflowpro.php.
denyPayment | ( | InfoInterface | $payment | ) |
Attempt to deny a pending payment
InfoInterface | $payment |
Definition at line 685 of file Payflowpro.php.
fetchTransactionInfo | ( | InfoInterface | $payment, |
$transactionId | |||
) |
Fetch transaction details info
InfoInterface | $payment | |
string | $transactionId |
Definition at line 533 of file Payflowpro.php.
fillCustomerContacts | ( | DataObject | $order, |
DataObject | $request | ||
) |
DataObject | $order | |
DataObject | $request |
Definition at line 855 of file Payflowpro.php.
getConfig | ( | ) |
getConfigPaymentAction | ( | ) |
Payment action getter compatible with payment model
Definition at line 367 of file Payflowpro.php.
isActive | ( | $storeId = null | ) |
Is active
int | null | $storeId |
Definition at line 353 of file Payflowpro.php.
isAvailable | ( | \Magento\Quote\Api\Data\CartInterface | $quote = null | ) |
Check whether payment method can be used
\Magento\Quote\Api\Data\CartInterface | Quote | null | $quote |
Definition at line 342 of file Payflowpro.php.
mapGatewayResponse | ( | array | $postData, |
DataObject | $response | ||
) |
Fill response with data.
array | $postData | |
DataObject | $response |
Definition at line 781 of file Payflowpro.php.
postRequest | ( | DataObject | $request, |
ConfigInterface | $config | ||
) |
{inheritdoc}
Implements GatewayInterface.
Definition at line 589 of file Payflowpro.php.
processErrors | ( | DataObject | $response | ) |
If response is failed throw exception
DataObject | $response |
Definition at line 653 of file Payflowpro.php.
refund | ( | \Magento\Payment\Model\InfoInterface | $payment, |
$amount | |||
) |
Refund capture
InfoInterface | Payment | Object | $payment | |
float | $amount |
Definition at line 511 of file Payflowpro.php.
reviewPayment | ( | InfoInterface | $payment, |
$action | |||
) |
Perform the payment review
InfoInterface | $payment | |
string | $action |
Definition at line 697 of file Payflowpro.php.
setBilling | ( | DataObject | $request, |
$billing | |||
) |
DataObject | $request | |
DataObject | $billing |
Definition at line 727 of file Payflowpro.php.
setShipping | ( | $request, | |
$shipping | |||
) |
DataObject | $request | |
DataObject | $shipping |
Definition at line 753 of file Payflowpro.php.
setTransStatus | ( | $payment, | |
$response | |||
) |
DataObject | $payment | |
DataObject | $response |
Definition at line 824 of file Payflowpro.php.
|
protected |
InfoInterface | $payment | |
string | $transactionId |
LocalizedException |
Definition at line 925 of file Payflowpro.php.
void | ( | \Magento\Payment\Model\InfoInterface | $payment | ) |
Void payment
InfoInterface | Payment | Object | $payment |
Definition at line 452 of file Payflowpro.php.
|
protected |
Definition at line 160 of file Payflowpro.php.
|
protected |
Definition at line 167 of file Payflowpro.php.
|
protected |
Definition at line 174 of file Payflowpro.php.
|
protected |
Definition at line 230 of file Payflowpro.php.
|
protected |
Definition at line 181 of file Payflowpro.php.
|
protected |
Definition at line 188 of file Payflowpro.php.
|
protected |
Definition at line 237 of file Payflowpro.php.
|
protected |
Definition at line 216 of file Payflowpro.php.
|
protected |
Definition at line 209 of file Payflowpro.php.
|
protected |
Definition at line 202 of file Payflowpro.php.
|
protected |
Definition at line 195 of file Payflowpro.php.
|
protected |
Definition at line 244 of file Payflowpro.php.
|
protected |
Definition at line 146 of file Payflowpro.php.
|
protected |
Definition at line 251 of file Payflowpro.php.
|
protected |
Definition at line 153 of file Payflowpro.php.
|
protected |
Definition at line 223 of file Payflowpro.php.
|
protected |
#-
Definition at line 91 of file Payflowpro.php.
|
protected |
Definition at line 261 of file Payflowpro.php.
|
protected |
Definition at line 256 of file Payflowpro.php.
const PNREF = 'pnref' |
Definition at line 88 of file Payflowpro.php.
const RESPONSE_CODE_APPROVED = 0 |
#+ Response code
Definition at line 72 of file Payflowpro.php.
const RESPONSE_CODE_CAPTURE_ERROR = 111 |
Definition at line 84 of file Payflowpro.php.
const RESPONSE_CODE_DECLINED = 12 |
Definition at line 78 of file Payflowpro.php.
const RESPONSE_CODE_DECLINED_BY_FILTER = 125 |
Definition at line 80 of file Payflowpro.php.
const RESPONSE_CODE_DECLINED_BY_MERCHANT = 128 |
Definition at line 82 of file Payflowpro.php.
const RESPONSE_CODE_FRAUDSERVICE_FILTER = 126 |
Definition at line 76 of file Payflowpro.php.
const RESPONSE_CODE_INVALID_AMOUNT = 4 |
Definition at line 74 of file Payflowpro.php.
const RESPONSE_CODE_VOID_ERROR = 108 |
Definition at line 86 of file Payflowpro.php.
const TENDER_CC = 'C' |
Tender type codes
Definition at line 60 of file Payflowpro.php.
const TRANSACTION_URL = 'https://payflowpro.paypal.com/transaction' |
Gateway request URLs
Definition at line 65 of file Payflowpro.php.
const TRANSACTION_URL_TEST_MODE = 'https://pilot-payflowpro.paypal.com/transaction' |
Definition at line 67 of file Payflowpro.php.
const TRXTYPE_ACCEPT_DENY = 'U' |
Definition at line 51 of file Payflowpro.php.
const TRXTYPE_AUTH_ONLY = 'A' |
Transaction action codes
Definition at line 37 of file Payflowpro.php.
const TRXTYPE_CREDIT = 'C' |
Definition at line 41 of file Payflowpro.php.
const TRXTYPE_DELAYED_CAPTURE = 'D' |
Definition at line 43 of file Payflowpro.php.
const TRXTYPE_DELAYED_INQUIRY = 'I' |
Definition at line 49 of file Payflowpro.php.
const TRXTYPE_DELAYED_VOICE = 'F' |
Definition at line 47 of file Payflowpro.php.
const TRXTYPE_DELAYED_VOID = 'V' |
Definition at line 45 of file Payflowpro.php.
const TRXTYPE_SALE = 'S' |
Definition at line 39 of file Payflowpro.php.
const UPDATEACTION_APPROVED = 'APPROVE' |
Definition at line 53 of file Payflowpro.php.
const UPDATEACTION_DECLINED_BY_MERCHANT = 'FPS_MERCHANT_DECLINE' |
Definition at line 55 of file Payflowpro.php.