Jumat , 29 Maret 2024
New Posts

How to catch successful response of Vodafone India

Problem of Vodafone response is because some of the response contain the 91 country code and some do not.

This is a sample of the response:
Refill request of Rs. 58.0 for mobile no. 917837898500, transaction ID PB13395394021 is successful. Your account balance is Rs. 24404.17

Refill request of Rs. 58.0 for mobile no. 7837898500, transaction ID PB13395394021 is successful. Your account balance is Rs. 24404.17

To overcome this, we must use of a regular expression to catch such response.

Here are the steps:

  1. Go to the Administration Response page.
  2. Create a new row with these parameters:
    Group = vodafone (or your own group name)
    Priority = 0 (make sure it is the smallest within the same group)
    Trx Status = Successful
    Regular Expression = mobile no. (?:91)*(?<tujuan>\d{10,}), transaction ID (?<sn>\w+) is successful.
  3. <tujuan> is the phone number we will catch. <sn> is the serial or reff number we will catch.

This is how it looks on the Administration Response page:
otomax-vodafone1

This is how it looks on Response Tester when we successfully catch the response:
otomax-vodafone2

Comments are closed.

Scroll To Top