PHP Paypal REST Billing Agreement combined with Digital Item -


in paypal sandbox, when create billing plan & agreement setup_fee, user can complete billing process paypal , plan created if user's paypal account has no funds available.

it appears setup_fee can take minutes after creation of plan & agreement until charges account.

i know classic digital goods api it's suggested combine billing plan checkout digital goods item, user have authorize payment digital goods item & billing agreement together. way user can create billing profile if able pay digital goods item. still best practice? if so, how using new rest php sdk?

is viable way it?:

  1. set plan when user starts checkout first billing amount being discounted price

  2. set billing agreement user authorise start date in hour

  3. list item once first payment cleared, run cron job update plan amount undiscounted rate next month's billing

seems unbelievably complicated me can't see other way without forcing user authenticate twice (once authorise payment, once authorise billing agreement)

this helpful paypal rest api discussion


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -