Guide
Operator Policies
Egypt
Encrypted Msisdn

Egypt NTRA Regulation

As per local NTRA regulation in Egypt for operators Orange, Vodafone, WE & Etisalat are not allowed to share subscriber MSISDN with service providers.

TPay as exclusive aggregator for Egypt operators will apply NTRA requirements by encrypting MSISDN in our integration points with merchants. Below are the affected points.

  1. MSISDN obtained via header enrichment or MO flows will be shared with merchants in an encrypted format.

    • The MSISDN parameter in the response of Header Enrichment or MO flows will be encrypted as:

      “TACR:Zo8FMkk4b6bZI6TiVu7k3HUxzN1zm4CQ8hQVoaSWyZc=” instead of plain format 201286438693 for Orange Egypt.

  2. MSISDN in all notification types that include MSISDN, MSISDN value will be encrypted.

  3. MSISDN in onetime payment widget final redirect will be encrypted.

Return URL Query String Parameters

Field NameDescription
actionThis value should be “pay”.
versionThe current version is 1.
dateThe transaction date. The format is a universal sortable format (yyyy-MM-dd HH:mm:ssZ).
productCatalogNameThe name of the product catalog.
productIdThe SKU of the product id that they selected.
msisdnTheir encrypted MSISDN.
operatorCodeThe mobile network operator code (mcc + mnc). Learn more.
orderInfoOrder information passed by the merchant.
transactionIdThe payment transaction id for tracking in the self-care or self-management portal.
amountThe amount charged, sent only if the transaction was successful.
currencyCodeThe ISO 4217 currency code (Learn more). Sent only if successful.
statusThe transaction status code.
payoutThe amount received by the merchant after deducting TPAY and operator cuts.
digestA security code calculated using HMACSHA256.

  1. For pin code flows APIs (onetime payment or subscription), MSISDN will be accepted in plain format, but the response will include the encrypted MSISDN.

One Time Payment Response

Field NameMandatory / OptionalDescription
operationStatusCodeMandatoryShould have the value “VerificationCodeSent” for successful operations.
transactionIdMandatoryThe Transaction ID used to confirm the payment transaction.
errorMessageOptionalError Message, if any.
MSISDNMandatoryTheir encrypted MSISDN.

Subscription Response

Field NameMandatory / OptionalDescription
operationStatusCodeMandatoryFor success, it should be “0” (Success), otherwise “51” (Error) and details in ErrorMessage.
subscriptionContractIdMandatoryThe ID of the newly created subscription contract.
paymentTransactionStatusCodeOptional”PaymentCompletedSuccessfully” if the transaction succeeded.
transactionIdOptionalThe Transaction ID to confirm payments or resend verification pin codes.
nextPaymentDateMandatoryThe date for the next recurring payment.
errorMessageOptionalContains error details if any.
MSISDNMandatoryTheir encrypted MSISDN.
  1. All TPay APIs will accept both encrypted and plain MSISDNs and treat them the same way.

Merchant should consider the following constraints:

  • Encrypted MSISDN value is a text field with a maximum length of 100 characters.
  • Merchants should not display the encrypted MSISDN on forms presented to subscribers.
  • Merchants should not use encrypted MSISDNs as usernames for accessing merchant portals.