protected function Payflow::getTransactionNumber in Commerce PayPal 8
Get the remote transaction number ('pnref') of a payment.
Parameters
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.
Return value
string The Payflow transaction number.
3 calls to Payflow::getTransactionNumber()
- Payflow::capturePayment in src/
Plugin/ Commerce/ PaymentGateway/ Payflow.php - Captures the given authorized payment.
- Payflow::refundPayment in src/
Plugin/ Commerce/ PaymentGateway/ Payflow.php - TODO: Find a way to store the capture ID.
- Payflow::voidPayment in src/
Plugin/ Commerce/ PaymentGateway/ Payflow.php - Voids the given payment.
File
- src/
Plugin/ Commerce/ PaymentGateway/ Payflow.php, line 216
Class
- Payflow
- Provides the PayPal Payflow payment gateway.
Namespace
Drupal\commerce_paypal\Plugin\Commerce\PaymentGatewayCode
protected function getTransactionNumber(PaymentInterface $payment) {
return explode('|', $payment
->getRemoteId())[0];
}