doPayment method
void
doPayment(
- BuildContext _cnx, {
- dynamic vendor_key,
- dynamic title,
- dynamic description,
- dynamic amount,
- dynamic transaction_id,
Implementation
void doPayment(BuildContext _cnx,
{vendor_key, title, description, amount, transaction_id}) async {
_buildContext = _cnx;
Navigator.push(
_buildContext, MaterialPageRoute(builder: (context) => Loading()));
Map<String, String> postValue = new Map<String, String>();
postValue["vendor_key"] = vendor_key.toString();
postValue["title"] = vendor_key.toString();
postValue["description"] = description.toString();
postValue["amount"] = amount.toString();
postValue["transaction_id"] = transaction_id.toString();
postValue["response_url"] = ReqModel.SUCCESS_URL;
postValue["cancellation_url"] = ReqModel.FAILED_URL;
ApiHelper _apiHelper = ApiHelper(this);
_apiHelper.processRequest(body: postValue);
}