|
34 | 34 | import com.flutterwave.raveandroid.rave_presentation.card.SavedCardsListener;
|
35 | 35 | import com.flutterwave.raveandroid.rave_presentation.data.AddressDetails;
|
36 | 36 | import com.flutterwave.raveandroid.rave_remote.responses.SaveCardResponse;
|
| 37 | +import com.flutterwave.raveutils.verification.RaveVerificationUtils; |
37 | 38 |
|
38 | 39 | import java.util.ArrayList;
|
39 | 40 | import java.util.List;
|
@@ -372,8 +373,8 @@ private void validateEntries() {
|
372 | 373 |
|
373 | 374 | cardPayManager = new CardPaymentManager(((RaveNonUIManager) raveManager), this, this);
|
374 | 375 | card = new Card(
|
375 |
| - "5531886652142950", // Test MasterCard PIN authentication |
376 |
| -// "4242424242424242", // Test VisaCard 3D-Secure Authentication |
| 376 | +// "5531886652142950", // Test MasterCard PIN authentication |
| 377 | + "4242424242424242", // Test VisaCard 3D-Secure Authentication |
377 | 378 | // "4556052704172643", // Test VisaCard (Address Verification)
|
378 | 379 | "12",
|
379 | 380 | "30",
|
@@ -405,6 +406,8 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
405 | 406 | } else if (resultCode == RavePayActivity.RESULT_CANCELLED) {
|
406 | 407 | Toast.makeText(this, "CANCELLED " + message, Toast.LENGTH_SHORT).show();
|
407 | 408 | }
|
| 409 | + } else if (requestCode == RaveConstants.WEB_VERIFICATION_REQUEST_CODE) { |
| 410 | + cardPayManager.onWebpageAuthenticationComplete(); |
408 | 411 | } else {
|
409 | 412 | super.onActivityResult(requestCode, resultCode, data);
|
410 | 413 | }
|
@@ -522,10 +525,11 @@ public void collectAddress() {
|
522 | 525 |
|
523 | 526 | @Override
|
524 | 527 | public void showAuthenticationWebPage(String authenticationUrl) {
|
525 |
| - Toast.makeText(this, "Called to load web page", Toast.LENGTH_SHORT).show(); |
| 528 | + Toast.makeText(this, "Loading auth web page", Toast.LENGTH_SHORT).show(); |
526 | 529 |
|
527 | 530 | // Load webpage
|
528 |
| -// cardPayManager.onWebpageAuthenticationComplete(); |
| 531 | + new RaveVerificationUtils(this, isLiveSwitch.isChecked(), publicKeyEt.getText().toString()) |
| 532 | + .showWebpageVerificationScreen(authenticationUrl); |
529 | 533 | }
|
530 | 534 |
|
531 | 535 | @Override
|
|
0 commit comments