You are here

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

Hashes a Payment PID.

Parameters

integer $pid:

Return value

string

5 calls to PayPalPaymentIPNController::hashPID()
PayPalPaymentIPNController::invoiceID in paypal_payment_ipn/includes/PayPalPaymentIPNController.inc
Creates a PayPal invoice ID from a Payment PID.
PayPalPaymentIPNController::PID in paypal_payment_ipn/includes/PayPalPaymentIPNController.inc
Extracts a Payment PID from a PayPa invoice ID.
PayPalPaymentIPNControllerTest::testHashPID in paypal_payment_ipn/tests/PayPalPaymentIPNControllerTest.test
Tests hashPID().
paypal_payment_pps_form_redirect in paypal_payment_pps/paypal_payment_pps.module
Form build callback: the redirect form.
paypal_payment_pps_return_access in paypal_payment_pps/paypal_payment_pps.module
Access callback for the return pages.

File

paypal_payment_ipn/includes/PayPalPaymentIPNController.inc, line 185

Class

PayPalPaymentIPNController
Provides IPN functionality.

Code

public static function hashPID($pid) {
  return hash('sha256', $pid . drupal_get_hash_salt());
}