You are here

public function PayflowLinkInterface::referencePayment in Commerce PayPal 8

Creates a reference payment.

Parameters

\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment to reference.

\Drupal\commerce_price\Price|null $amount: The amount to use in reference payment.

Throws

\Drupal\commerce_payment\Exception\PaymentGatewayException Thrown when the transaction fails for any reason.

1 method overrides PayflowLinkInterface::referencePayment()
PayflowLink::referencePayment in src/Plugin/Commerce/PaymentGateway/PayflowLink.php
Creates a reference payment.

File

src/Plugin/Commerce/PaymentGateway/PayflowLinkInterface.php, line 52

Class

PayflowLinkInterface
Provides the interface for the PayflowLink payment gateway.

Namespace

Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway

Code

public function referencePayment(PaymentInterface $payment, Price $amount = NULL);