Professional Documents
Culture Documents
Gateway Code
Gateway Code
Gateway Code
#include <string>
//Confirm if Buyer phone number has correct phone number format i.e 07-- ------
//get the phone number from string
string buyerPhoneNumber
//check if the first two characters of the phone number are ‘07’
string bPNcheck
string payableAmount
int position = merchantSMS.find ('#');
string payableAmount
int position = merchantSMS.find ('#');
int position2 = merchantSMS.find ('#', position+1);
}
else
{
cout << "Error getting the payable amount!" << endl;
}
string prevTransactionNo
int position = merchantSMS.find ('#');
int position2 = merchantSMS.find ('#', position+1);
}
else
{
cout << "Error getting the previous transaction number!" <<
endl;
}