Closed brylie closed 11 months ago
Hey! @brylie, I want to contribute Please assign me.
I would like to contribute to this issue. Is anybody working with it?
We are working on it.
On Wed, 4 Oct 2023 at 23:54, kiranrokkam09 @.***> wrote:
I would like to contribute to this issue. Is anybody working with it?
— Reply to this email directly, view it on GitHub https://github.com/WesternFriend/WF-website/issues/757#issuecomment-1747421433, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKCW63VOBH46WAGCHVF2SLX5WSXTAVCNFSM6AAAAAAZ56SSH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGQZDCNBTGM . You are receiving this because you were assigned.Message ID: @.***>
Yesterday, I met with @marycklein and we decided not to use Braintree any longer. We will use PayPal instead. Currently, I'm working to port our payment code over to use PayPal instead of Braintree. Would you like to assist with the PayPal payment solution?
Sure, no problem.
On Thu, 5 Oct 2023 at 20:12, Brylie Christopher Oxley < @.***> wrote:
Yesterday, I met with @marycklein https://github.com/marycklein and we decided not to use Braintree any longer. We will use PayPal instead. Currently, I'm working to port our payment code over to use PayPal instead of Braintree. Would you like to assist with the PayPal payment solution?
— Reply to this email directly, view it on GitHub https://github.com/WesternFriend/WF-website/issues/757#issuecomment-1749049762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKCW63A3EJDE7MO242EJ4LX53BLTAVCNFSM6AAAAAAZ56SSH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGA2DSNZWGI . You are receiving this because you were assigned.Message ID: @.***>
No longer relevant
On the Payment page, we render a Braintree payment element above a Pay button within a form. However, there is some delay when rendering the payment element. This delay may confuse users who might submit the form prematurely. Instead, we should disable the "Pay" button until at least the payment element renders. The "Pay" button should be disabled until the payment widget is filled in and validated. Check for a callback event for the Braintree payment widget where we can toggle the
disabled
property on the "Pay" button. Otherwise, we must figure out how to ensure the element is rendered at least before enabling the "Pay" button.https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/javascript/v3
At first glance, we may be able to listen for the
paymentMethodRequestable
event to toggle thedisabled
state of the Pay button.https://developer.paypal.com/braintree/docs/guides/drop-in/customization/javascript/v3/#events https://braintree.github.io/braintree-web-drop-in/docs/current/Dropin.html#on
Also, make sure we are using the latest Braintree JavaScript SDK.