You are here

public static function PayPalPaymentIPNController::invoiceID in PayPal for Payment 7

Creates a PayPal invoice ID from a Payment PID.

Parameters

integer $pid:

Return value

string

See also

PayPalPaymentController::PID()

5 calls to PayPalPaymentIPNController::invoiceID()
PayPalPaymentECPaymentMethodController::paymentNVP in paypal_payment_ec/includes/PayPalPaymentECPaymentMethodController.inc
Returns NPV variables for a Payment.
PayPalPaymentIPNControllerTest::testInvoiceID in paypal_payment_ipn/tests/PayPalPaymentIPNControllerTest.test
Tests invoiceID().
PayPalPaymentIPNControllerTest::testPID in paypal_payment_ipn/tests/PayPalPaymentIPNControllerTest.test
Tests PID().
PayPalPaymentIPNWebTestCase::mockIPNVariables in paypal_payment_ipn/tests/PayPalPaymentIPNWebTestCase.test
Creates IPN variables for a payment.
paypal_payment_pps_form_redirect in paypal_payment_pps/paypal_payment_pps.module
Form build callback: the redirect form.

File

paypal_payment_ipn/includes/PayPalPaymentIPNController.inc, line 198

Class

PayPalPaymentIPNController
Provides IPN functionality.

Code

public static function invoiceID($pid) {
  return 'drupal_paypal_payment_ipn-' . self::hashPID($pid) . '-' . $pid;
}