Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct flutterwave display #2002

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

laurelfulford
Copy link
Contributor

@laurelfulford laurelfulford commented Dec 12, 2024

All Submissions:

Changes proposed in this Pull Request:

This PR fixes some display issues with the Flutterwave Payment Gateway.

Note: this experience is still a bit subpar -- Flutterwave opens in its own iframe inside of the modal checkout, and I haven't gotten it to trigger the thank you step at the very end.

See 1207817176293825-as-1208919243890764

How to test the changes in this Pull Request:

  1. Apply this PR and run npm run build.
  2. Install the Flutterwave payment gateway: https://wordpress.org/plugins/woo-rave/
  3. Under WooCommerce > Settings > Payments, enable the payment gateway and set it to test mode. You can use the keys in the above Asana task:

CleanShot 2024-12-12 at 13 39 35

  1. Run through a transaction; on the second screen, confirm you get Flutterwave as a payment gateway:

CleanShot 2024-12-12 at 13 40 47

  1. Complete the transaction using Flutterwave; you may get a brief flash of the Order Details, then an iFrame should open:

CleanShot 2024-12-12 at 13 43 17

  1. Run a transaction using the test credit card number, 4111 1111 1111 1111. You'll need to fill out additional fake information (billing details).
  2. You should get a step to go to your bank to complete the transaction that opens in a new tab:

CleanShot 2024-12-12 at 13 44 31

  1. Click the 'Submit' button on the test screen from Flutterwave:

CleanShot 2024-12-12 at 13 45 01

  1. Flutterwave should redirect you back to the original tab and show a success message:

CleanShot 2024-12-12 at 13 45 20

  1. The success message will then close to the Order Details:

CleanShot 2024-12-13 at 10 45 23

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@laurelfulford
Copy link
Contributor Author

Setting as a draft to do a bit more digging into whether I can improve the last step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant