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

[BUG]: Sometimes paypal subscription details along with total not showing. #512

Open
2 tasks done
SantoshKumarRavi opened this issue May 28, 2024 · 4 comments
Open
2 tasks done

Comments

@SantoshKumarRavi
Copy link

SantoshKumarRavi commented May 28, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

🐞 Describe the Bug

I am using below constants for making subscription.
I am using sandbox for testing.

<PayPalScriptProvider
       options={{
         clientId: "xxxxxx",
         components: 'buttons',
         intent: 'subscription',
         vault: true,
       }}
     >
 <PayPalButtons
            fundingSource={'paypal'}
            forceReRender={[purchasedSeats, selectedPlan]}
            createSubscription={async () => {
              const subscriptionId =
                await handleCreateNewSubscription(selectedPlan);

              return subscriptionId || Promise.reject(UNHANDLED_ERROR);
            }}
          />

if i pay with paypal button, 8/10 times paypal is opening pop up with subscription details.
But 2/10 times sandbox is opening popup without subscription details.
even I tried to complete the payment in unexpected scenario, transaction is not complete from both front end backend.
I compared URL in pop up window for both scenarios.
routes are mismatching.
Expected results URL route contains the route checkout/selectFi additionally at end but it is not having in unexpected times. if I refresh the URL in same pop window, it is working.

https://www.sandbox.paypal.com/checkoutnow?sessionID=uid_xxxxx&buttonSessionID=uid_5xxxxx&stickinessID=uid_xxxxx&smokeHash=&sign_out_user=false&fundingSource=paypal&buyerCountry=IN&locale.x=en_US&commit=true&client-metadata-id=uid_xxxx&standaloneFundingSource=paypal&branded=true&clientID=xxxxxx&env=sandbox&sdkMeta=xxxxxxxx&xcomponent=1&version=5.0.440&token=xxxxxxx/checkout/selectFi

😕 Current Behavior

Screenshot (2032)

🤔 Expected Behavior

Screenshot (2030)

🔬 Minimal Reproduction

No response

🌍 Environment

| Software         | Version(s) |
| ---------------- | ---------- |
| react-paypal-js  | 8.3.0      |
| Browser          | Chorme     |
| Operating System | windows    |

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

➕ Anything else?

No response

@wsbrunson
Copy link
Member

wsbrunson commented Jun 10, 2024

We have moved this repository to our paypal-js monorepo: https://github.com/paypal/paypal-js

We will be archiving this repo at the end of the day which will turn off Issues activity. If this is still an issue for you, please re-open this issue here:

Transferring this issue here: https://github.com/paypal/paypal-js/issues

@wsbrunson wsbrunson transferred this issue from paypal/react-paypal-js Jun 10, 2024
@SantoshKumarRavi
Copy link
Author

SantoshKumarRavi commented Jun 12, 2024

Thanks for informing. Error is still there

Copy link
Contributor

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Stale label Sep 11, 2024
@SantoshKumarRavi
Copy link
Author

bump

@github-actions github-actions bot removed the Stale label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants