The Flutterwave Developer Documentation

We have put together comprehensive guidelines and documentation to help you get right into integrating any of our products quickly. You can also get support when you need help!

API Documentation    API Reference
Ask A Question



do not charge card

I am trying to implement RaveNonUIManager of your android SDK and it does not change the card and no error I dont know what the problem could be. public void chargeCard(){ RaveNonUIManager raveNonUIManager = new RaveNonUIManager(). setAmount(amount). setPublicKey("FLWPUBK_TEST-2f6f9eca9903a888c5fdc8982514cd20-X") .setEncryptionKey("FLWSECK_TEST97c64bd835da") .setPhoneNumber(phone) .initialize(); CardPaymentManager cardPayManager = new CardPaymentManager(raveNonUIManager, this, this); Card card = new Card("5531886652142950", "08", "35", "564"); // Test MasterCard PIN cardPayManager.chargeCard(card); Toast.makeText(getApplicationContext(), "Printedl", Toast.LENGTH_SHORT).show(); } @Override public void showProgressIndicator(boolean active) { } @Override public void collectCardPin() { } @Override public void collectOtp(String message) { } @Override public void collectAddress() { } @Override public void showAuthenticationWebPage(String authenticationUrl) { } @Override public void onError(String errorMessage, @Nullable String flwRef) { Toast.makeText(this, errorMessage, Toast.LENGTH_LONG).show(); } @Override public void onSuccessful(String flwRef) { Toast.makeText(getApplicationContext(), "Transaction is successful", Toast.LENGTH_SHORT).show(); } @Override public void onSavedCardsLookupSuccessful(List<SavedCard> cards, String phoneNumber) { } @Override public void onSavedCardsLookupFailed(String message) { } @Override public void onDeleteSavedCardRequestSuccessful() { } @Override public void onDeleteSavedCardRequestFailed(String message) { } @Override public void collectOtpForSaveCardCharge() { } @Override public void onCardSaveSuccessful(String phoneNumber) { } @Override public void onCardSaveFailed(String message) { }

Posted by Oshaba Samson 5 months ago