Hi Everyone
I am trying to integrate fortumo (Direct Career Billing) in my app
but gettinh an error "cannot resolve symbol TYPE_NON_CONSUMABLE" on a single line
this is my code below
public void onClick(View v) {
switch(v.getId()) {
case R.id.buy_button: {
PaymentRequest.PaymentRequestBuilder builder = new PaymentRequest.PaymentRequestBuilder();
builder.setService(SERVICE_ID, APP_SECRET);
builder.setDisplayString("Fortumo Sample1");
builder.setProductName("Fortumo Sample1"); // non-consumable purchases are restored using this value
builder.setType(MpUtils.TYPE_NON_CONSUMABLE); // non-consumable items can be later restored
builder.setIcon(R.drawable.ic_launcher);
PaymentRequest pr = builder.build();
makePayment(pr);
} break;
}
}
Kindly help
Cannot resolve symbol TYPE_NON_CONSUMABLE
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Tejas TrivediRank #1,247 · 1.4K reputationPosted Sep 19, 2016, 7:50 PM EDT
JOHN JOHNNNYRank #9,451 · 206 reputationPosted Sep 20, 2016, 3:21 AM EDT