Search code examples
reactjspaypal

Paypal Subscription StartDate Issue


I have been using paypal subscriptions for users on my website to subscribe to the plans. Everything else is working fine but when any international user on my website tries to subscribe the subscription then paypal store shows date in GMT timezone.

Please see below image, even though it is 6/10 at 6:40 AM in Japan the subscription still shows 6/9 in the PayPal Store paypal timezone issue

I am using https://www.npmjs.com/package/@paypal/react-paypal-js package to integrate paypal store.

I have also tried passing buyer-country option which also fails to display time in customer's timezone.

Below is the integration code for paypal store

              <PayPalScriptProvider
                      options={{
                        "client-id": configs.PAYPAL_CLIENT_ID,
                        vault: true,
                        "buyer-country": "NU",
                        locale: "en_US",
                        intent: "subscription",
                       }}
                    >
                         <PayPalButtons 
                          style={{layout: "horizontal"}}
                          createSubscription={createSubscription}
                          onApprove={onChangePlanClick}
                        ></PayPalButtons>
              </PayPalScriptProvider>

Is there any way I can change the timezone according to user's timezone?


Solution

  • What is the timezone setting of the Sandbox account you are signed into?

    Try using a Japanese Sandbox account.