refId Formula For airthanlwin

Começar. É Gratuito
ou inscrever-se com seu endereço de e-mail
refId Formula For airthanlwin por Mind Map: refId Formula For airthanlwin

1. Step 6: Convert to Integer

1.1. (int) $concatenatedValue

1.2. Result: 183234303

2. Output: $outward['refID']

2.1. Example: 183234303

3. Input: $airCoupon->RefSegment (From Thirdparty)

3.1. Example: "-183234"

4. Step 1: Remove Hyphens

4.1. str_replace('-', '', $RefSegment)

4.2. Result: "183234"

5. Step 2: Convert to Integer

5.1. (int) $RefSegment (no hyphens)

5.2. Result: 183234

6. Step 3: Encrypt Source Code

6.1. self::encryptSource($this->sourceCode)

6.2. Result: "3039656741" (example)

7. Step 4: Truncate Encrypted Source Code

7.1. substr($encryptedSource, 0, 3)

7.2. Result: "303"

8. Step 5: Concatenate

8.1. $RefSegment (no hyphens) + Truncated Encrypted Source

8.2. Result: "183234303"