Hi,
Thank you for this code. Am using a Live gateway and I have a problem. The two arrays $ussd_string_exploded & $details seem to be getting reset with each user input. When user selects dials the short code they are presented with a menu. When the user makes a selection e.g. 1 the $ ussd_string_exploded array store that value at [0] and parses it to the $details array. When user enters the pin that input replaces the 1 value at [0] in the $ussd_string_exploded and henceforth changes the count in the $details array and I still get "please enter pin". Could you please help on this.
Thanks