PayPal billing agreements REST API - how to start immediately

后端 未结 5 1138
抹茶落季
抹茶落季 2021-02-08 07:23

How can I start charging a user the user immediately for a PayPal billing agreement?

Here\'s what I\'ve got so far.

  1. Create a Billing Plan (POST .../payment
5条回答
  •  北海茫月
    2021-02-08 07:24

    It looks like the payments just process based on the date being before or after 07:00 UTC of the current date.

    For example. The current date time is 2017-05-04T04:50:00.00Z I set my start date to be the current UTC date time plus 30 seconds. Because the agreement date is set to a value greater then the current date time the API doesn't throw an error, but it DOESN'T set your time to be what you specified. Instead it sets it to 2017-05-04T07:00:00Z.

    Now, if you have the same date time of 2017-05-04T04:50:00.00Z and instead of adding 30 seconds you add 24hrs you'd think that your time would then be set to be 2017-05-05T04:50:00.00Z. But no, the time will be set to 2017-05-05T07:00:00Z.

    So it seems like these just process everyday at 07:00 UTC and you can't specify anything but the date.

提交回复
热议问题