cancel
Showing results for 
Search instead for 
Did you mean: 

Subscription start date issue

Options
lu_lu_
Contributor
Posted on

Hi 👋🏻,

I currently develop an option to subscribe to my website and have created following subscription in sandbox:

 

{
  "plan_id": "[my_plan_id]",
  "quantity": "1",
  "application_context": {
      "brand_name": "test",
      "user_action": "SUBSCRIBE_NOW",
      "payment_method": {
            "payer_selected": "PAYPAL",
            "payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"
      },
      "return_url": "https://example.com/returnUrl",
      "cancel_url": "https://example.com/cancelUrl"
    }
}

Now i subscribe with my client test account to this subscription.

Everything works fine but the start time of the subscription i one day in the past.

 

subscriptionsubscription

The start time should be 24.05.2020 (because the default start time, if not set in json, should be the current date -pay pal api documentation).

Same problem if i set a value for the "start time" attribute. 

Maybe its an issue with my timezone (UTC+2h, Germany) or i am missing something.


Please help and thanks in advance.

3 REPLIES 3

Subscription start date issue

Options
MTS-Aaron
PayPal Employee

Hi @lu_lu_ 

 

I'm not sure why the date would show as one versus the other. Might be a timezone thing. If you want to be sure, you can define a "Start Time" as you can see in the API reference here.

 

Hope this helps!

-Aaron

Subscription start date issue

Options
lu_lu_
Contributor

Hi @MTS-Aaron thank you for the reply 😊

I have already tried to set the start_time (with and without an timezone) of the subscription manually. 

 

Same response (start_time) as with not setting it.

More Information: 

Sandbox client account => timezone germany

Sandbox business account => timezone germany

 

Correct me if i'm wrong, but i think the api takes the given dat[Removed. Phone #s not permitted]00:00) throws away the time and substract 2 hours (because i'm 2 hours after UTC) <= If that makes any sense?! 😂

Subscription start date issue

Options
drashtikheni
Contributor

Hi, I am having the same issue.
How did you solve it?

 

Thanks in advance.

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.