Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelnyandoro committed Jul 4, 2024
1 parent ed7bc80 commit 2c55204
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class MainActivity extends AppCompatActivity implements AuthListener, Mpe
public static final String CONSUMER_KEY = "3i1GeIFgDjlsFHHG90YmREkuxCskO8Fm";
public static final String CONSUMER_SECRET = "iMaqxYHjwCCrcfcH";
public static final String CALLBACK_URL = "YOUR_CALLBACK_URL";

public static final String NOTIFICATION = "PushNotification";
public static final String SHARED_PREFERENCES = "com.mpesaandroidintegration.mpesaintegrationandroid";

Expand All @@ -46,9 +45,9 @@ public class MainActivity extends AppCompatActivity implements AuthListener, Mpe
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
pay = (Button)findViewById(R.id.pay);
phone = (EditText)findViewById(R.id.phone);
amount = (EditText)findViewById(R.id.amount);
pay = findViewById(R.id.pay);
phone = findViewById(R.id.phone);
amount = findViewById(R.id.amount);
Mpesa.with(this, CONSUMER_KEY, CONSUMER_SECRET);
dialog = new ProgressDialog(this);
dialog.setMessage("Processing");
Expand Down

0 comments on commit 2c55204

Please sign in to comment.