public function OnsiteBase::getRemoteProfileId in Commerce Authorize.Net 8
Returns the payment method remote identifier ensuring customer identifier is removed.
Parameters
\Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method: The payment method.
Return value
string The remote id.
3 calls to OnsiteBase::getRemoteProfileId()
- AcceptJs::createPayment in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Creates a payment.
- AcceptJs::updatePaymentMethod in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Updates the given payment method.
- OnsiteBase::deletePaymentMethod in src/
Plugin/ Commerce/ PaymentGateway/ OnsiteBase.php - @todo Needs kernel test
File
- src/
Plugin/ Commerce/ PaymentGateway/ OnsiteBase.php, line 336
Class
- OnsiteBase
- Provides the Authorize.net payment gateway base class.
Namespace
Drupal\commerce_authnet\Plugin\Commerce\PaymentGatewayCode
public function getRemoteProfileId(PaymentMethodInterface $payment_method) {
$remote_id = $payment_method
->getRemoteId();
$ids = explode('|', $remote_id);
return end($ids);
}