hello I need to pass value from method A() to Method C() then after call Method C() inside the method B(). please any one show me the syntax.
for example:
void pay(){
int amount = 100;
String payerName = "Enock",
payerPhone = editphonenumber.getText().toString();
Api.flutterwavePayment(KuguraActivity.this,Integer.valueOf(amount), payerName,payerPhone,"Kugura ibicuruzwa");
}
I need this payerPhone the next follow method called onActivityResult()
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == RaveConstants.RAVE_REQUEST_CODE && data != null) {
String message = data.getStringExtra("response");
if (resultCode == RavePayActivity.RESULT_SUCCESS) {
Toast.makeText(this, "SUCCESS " + message, Toast.LENGTH_LONG).show();
// phone number here
}
}
}