Tribe__Tickets__Commerce__PayPal__Main::generate_security_code( int $attendee_id )
Generates the validation code that will be printed in the ticket.
Contents
Its purpose is to be used to validate the ticket at the door of an event.
Parameters
- $attendee_id
-
(int) (Required)
Return
(string)
Source
File: src/Tribe/Commerce/PayPal/Main.php
public function generate_security_code( $attendee_id ) {
return substr( md5( rand() . '_' . $attendee_id ), 0, 10 );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |