- Issue created by @jsacksick
- ๐ฎ๐ฑIsrael jsacksick
jsacksick โ changed the visibility of the branch 3528108-stripe-connect-implementation to hidden.
- ๐ณ๐ดNorway zaporylie
I tested the functionality of the patch and here are my findings:
- Connecting the gateway to a merchantโs Stripe account works correctly, including disconnecting. This was tested using the Stripe Sandbox.
- If the gateway is first saved as "Stripe Connect" and later switched to "API Keys," it will silently revert back to "Stripe Connect" if the secret key is left empty. I believe additional validation should be added to prevent this.
- Additionally, if the merchant's account is already connected via "Connect with Stripe," switching the mode to "API Keys" invalidates the connection, but the "Stripe Connect" option remains selected. This could be confusing and may need better handling in the UI or logic.
- When the account is connected, the option to switch between "API Keys" and "Stripe Connect" should be disabled to prevent accidental misconfiguration.
- Placing the Connect/Disconnect button next to the "Mode" setting on the payment gateways page feels visually inconsistent. Consider replacing it with operation links for "Connect" and "Disconnect," and showing a styled button on the confirmation screen instead.
- The confirmation page shown during the "Connect with Stripe" flow could also serve as the landing page after submitting a new or existing payment gateway with "Stripe Connect" selectedโif the merchant's account hasnโt been connected yet.
- Disconnecting a Stripe gateway causes a WSOD on the checkout page if the user selects a payment method that was previously created with Stripe. This should be handled more gracefully.
- On a positive note, connecting, disconnecting, and reconnecting with Stripe Connect preserves access to previously created payment methods, which works well.
- ๐ฎ๐ฑIsrael jsacksick
If the gateway is first saved as "Stripe Connect" and later switched to "API Keys," it will silently revert back to "Stripe Connect" if the secret key is left empty. I believe additional validation should be added to prevent this.
That is because it is the default. We don't really save the authentication method as it felt unnecessary.
Placing the Connect/Disconnect button next to the "Mode" setting on the payment gateways page feels visually inconsistent. Consider replacing it with operation links for "Connect" and "Disconnect," and showing a styled button on the confirmation screen instead.
The operation can be easily missed, which is why the connect button was added from the list.
Disconnecting a Stripe gateway causes a WSOD on the checkout page if the user selects a payment method that was previously created with Stripe. This should be handled more gracefully.
This is probably out of scope, but can look into handling this more gracefully. In theory, the best would be to not present those methods anymore.
- ๐ฎ๐ฑIsrael jsacksick
Additionally, if the merchant's account is already connected via "Connect with Stripe," switching the mode to "API Keys" invalidates the connection, but the "Stripe Connect" option remains selected. This could be confusing and may need better handling in the UI or logic.
So if we prevent switching to API keys, this wouldn't happen right? Maybe this is what we should be doing and people should go through the disconnect link to disconnect properly.
- ๐ฎ๐ฑIsrael jsacksick
I think the feedbacks were addressed. Connection is now done from an Operation link, we just need to fix the styling on the Stripe connect confirmation form.
- First commit to issue fork.
- ๐ท๐ธSerbia majmunbog
The button is now consistently styled across all admin themes.
-
jsacksick โ
committed b2dc54f7 on 2.x
Issue #3528108 by jsacksick, majmunbog: Stripe connect implementation
-
jsacksick โ
committed b2dc54f7 on 2.x
Automatically closed - issue fixed for 2 weeks with no activity.