my data from web api is as
[
{
"id": 1,
"ptype_id": "P01",
"ptype_name": "By Cash"
},
{
"id": 2,
"ptype_id": "P02",
"ptype_name": "By Card"
},
{
"id": 3,
"ptype_id": "P03",
"ptype_name": "By IMPS [Paypal or Others]"
},
{
"id": 4,
"ptype_id": "P04",
"ptype_name": "Western Union Money Transfer"
}
]