{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/504","repository_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK","labels_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/504/comments","events_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/504/events","html_url":"https://github.com/paypal/PayPal-PHP-SDK/issues/504","id":137135813,"number":504,"title":"Charge an initial payment with a billing agreement, don't create if user can't be charged (since plan with setup_fee can be created even for accounts with 0 funds)","user":{"login":"iadj","id":8861459,"avatar_url":"https://avatars.githubusercontent.com/u/8861459?v=3","gravatar_id":"","url":"https://api.github.com/users/iadj","html_url":"https://github.com/iadj","followers_url":"https://api.github.com/users/iadj/followers","following_url":"https://api.github.com/users/iadj/following{/other_user}","gists_url":"https://api.github.com/users/iadj/gists{/gist_id}","starred_url":"https://api.github.com/users/iadj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iadj/subscriptions","organizations_url":"https://api.github.com/users/iadj/orgs","repos_url":"https://api.github.com/users/iadj/repos","events_url":"https://api.github.com/users/iadj/events{/privacy}","received_events_url":"https://api.github.com/users/iadj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/labels/api-bug","name":"api-bug","color":"e11d21"},{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/labels/api-subscription","name":"api-subscription","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":72,"created_at":"2016-02-29T02:59:34Z","updated_at":"2016-08-23T16:43:50Z","closed_at":null,"body":"In the sandbox, when I create a billing plan & agreement with `setup_fee`, the plan can be created even with an account that has no funds.\r\n\r\nMy experience with the sandbox with `setup_fee` is that the `setup_fee` stays at 0, even though I configured it. However I heard it can take several minutes after the creation of the plan & agreement until it actually charges the account. How will we know until then if the user has sufficient funds in their account to pay the initial payment? What happens if the user cancels their plan before the `setup_fee` has gone through? I want my users to instantly utilize their subscription features after payment. Not require them to wait several minutes before the initial payment has (or hasn't) gone through.\r\n\r\nI know that with the classic API it's suggested to combine the billing plan with a Checkout for Digital Goods item, and have the user authorize a payment for the digital goods item & the billing agreement together. This way the user can only create the billing profile if it was able to pay for the digital goods item. Is this still the best practice? If so, how do we do this using the PHP SDK?"},"comment":{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/comments/241796341","html_url":"https://github.com/paypal/PayPal-PHP-SDK/issues/504#issuecomment-241796341","issue_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/504","id":241796341,"user":{"login":"sedrakpc","id":6464002,"avatar_url":"https://avatars.githubusercontent.com/u/6464002?v=3","gravatar_id":"","url":"https://api.github.com/users/sedrakpc","html_url":"https://github.com/sedrakpc","followers_url":"https://api.github.com/users/sedrakpc/followers","following_url":"https://api.github.com/users/sedrakpc/following{/other_user}","gists_url":"https://api.github.com/users/sedrakpc/gists{/gist_id}","starred_url":"https://api.github.com/users/sedrakpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedrakpc/subscriptions","organizations_url":"https://api.github.com/users/sedrakpc/orgs","repos_url":"https://api.github.com/users/sedrakpc/repos","events_url":"https://api.github.com/users/sedrakpc/events{/privacy}","received_events_url":"https://api.github.com/users/sedrakpc/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T16:43:50Z","updated_at":"2016-08-23T16:43:50Z","body":"😢 "}}
{"actor":{"display_login":"sedrakpc"}}