paypal-js icon indicating copy to clipboard operation
paypal-js copied to clipboard

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

Open SantoshKumarRavi opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] 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

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

➕ Anything else?

No response

SantoshKumarRavi avatar May 28 '24 03:05 SantoshKumarRavi

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 avatar Jun 10 '24 19:06 wsbrunson

Thanks for informing. Error is still there

SantoshKumarRavi avatar Jun 12 '24 09:06 SantoshKumarRavi

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[bot] avatar Sep 11 '24 00:09 github-actions[bot]

bump

SantoshKumarRavi avatar Sep 13 '24 04:09 SantoshKumarRavi

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[bot] avatar Dec 13 '24 00:12 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information.

github-actions[bot] avatar Dec 21 '24 00:12 github-actions[bot]