PayPal billing agreements REST API - how to start immediately

后端 未结 5 1144
抹茶落季
抹茶落季 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:29

    I can't replicate, actually. I stumbled on this thread when getting the error due to setting it to moment.now(). But setting it to even 5 seconds in the future works a-ok. I'm using JavaScript, "start_date": moment().add({seconds:5}).format() and that checks out fine. Moment.js will set TZ to UTC when formatting as such, so it's gotta be a timezone thing on your end?

提交回复
热议问题