Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Silent PayPal failure #943

Open
micahalcorn opened this issue Apr 2, 2021 · 1 comment · May be fixed by #1028
Open

Silent PayPal failure #943

micahalcorn opened this issue Apr 2, 2021 · 1 comment · May be fixed by #1028
Assignees
Labels
P2 Small number of users are affected, major cosmetic issue

Comments

@micahalcorn
Copy link
Member

From a user:

We are testing the shopping cart and the checkout experience on the commerce site we are building on D-Shop. There are issues after checkout when on the PayPal page where after entering all info into Paypal it just reverts back to the data entry page.

@micahalcorn micahalcorn added the P2 Small number of users are affected, major cosmetic issue label Apr 2, 2021
@phyninja phyninja self-assigned this Jan 21, 2022
@phyninja
Copy link
Contributor

phyninja commented Jan 21, 2022

Issue, as seen in my development environment:

Paypal.payment.failure.mov

Additional information:
This issue affects users whose stores use custom themes; I have not been able to reproduce it on a store using the 'Default' theme.
One point of failure is in the rendering of the PaymentChooser component, once the browser returns from interacting with Paypal:

const PaymentChooser = ({ state, setState }) => {
const { config } = useConfig()
const [{ cart }] = useStateValue()
const paymentMethods = get(config, 'paymentMethods', [])

The state variable passed as a "prop" toPaymentChooser should include the shop's configuration details. Only then will the config variable be set correctly. The re-rendering of PayWithPayPal may then continue.

@phyninja phyninja linked a pull request Jan 23, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2 Small number of users are affected, major cosmetic issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants