JOHN JOHNNNY

JOHN JOHNNNY

  • NA
  • 190
  • 140.2k

Cannot resolve symbol TYPE_NON_CONSUMABLE

Sep 19 2016 11:29 AM
Hi Everyone<br /><br />I am trying to integrate fortumo (Direct Career Billing) in my app<br />but gettinh an error "cannot resolve symbol TYPE_NON_CONSUMABLE" on a single line<br />this is my code below<br /><br />public void onClick(View v) {<br /> switch(v.getId()) {<br /> case R.id.buy_button: {<br /><br /> PaymentRequest.PaymentRequestBuilder builder = new PaymentRequest.PaymentRequestBuilder();<br /> builder.setService(SERVICE_ID, APP_SECRET);<br /> builder.setDisplayString("Fortumo Sample1");<br /> builder.setProductName("Fortumo Sample1"); // non-consumable purchases are restored using this value<br /> builder.setType(MpUtils.TYPE_NON_CONSUMABLE); // non-consumable items can be later restored<br /> builder.setIcon(R.drawable.ic_launcher);<br /> PaymentRequest pr = builder.build();<br /> makePayment(pr);<br /><br /> } break;<br /> }<br /> }<br /><br />Kindly help

Answers (2)