{"action":"created","issue":{"url":"https://api.github.com/repos/drastik/com.drastikbydesign.stripe/issues/247","repository_url":"https://api.github.com/repos/drastik/com.drastikbydesign.stripe","labels_url":"https://api.github.com/repos/drastik/com.drastikbydesign.stripe/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/drastik/com.drastikbydesign.stripe/issues/247/comments","events_url":"https://api.github.com/repos/drastik/com.drastikbydesign.stripe/issues/247/events","html_url":"https://github.com/drastik/com.drastikbydesign.stripe/issues/247","id":292248286,"number":247,"title":"Cannot access protected property","user":{"login":"adam-devapp","id":13082954,"avatar_url":"https://avatars3.githubusercontent.com/u/13082954?v=4","gravatar_id":"","url":"https://api.github.com/users/adam-devapp","html_url":"https://github.com/adam-devapp","followers_url":"https://api.github.com/users/adam-devapp/followers","following_url":"https://api.github.com/users/adam-devapp/following{/other_user}","gists_url":"https://api.github.com/users/adam-devapp/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-devapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-devapp/subscriptions","organizations_url":"https://api.github.com/users/adam-devapp/orgs","repos_url":"https://api.github.com/users/adam-devapp/repos","events_url":"https://api.github.com/users/adam-devapp/events{/privacy}","received_events_url":"https://api.github.com/users/adam-devapp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-28T23:05:41Z","updated_at":"2018-03-26T09:04:06Z","closed_at":null,"author_association":"NONE","body":"( ! ) Fatal error: Uncaught Error: Cannot access protected property CRM_Contribute_Form_AdditionalPayment::$_paymentProcessors in ...../civicrm/ext/com.drastikbydesign.stripe/CRM/Core/Form/Stripe.php on line 13\r\n( ! ) Error: Cannot access protected property CRM_Contribute_Form_AdditionalPayment::$_paymentProcessors in .....//civicrm/ext/com.drastikbydesign.stripe/CRM/Core/Form/Stripe.php on line 13\r\n\r\nThis occurs when attempting to record a CC payment against an existing offline contribution.\r\n\r\nCiviCRM appear to have changed access to the variables used, so obtaining the variables from the class doesn't work.\r\n\r\nPotential work around is using a function like:\r\n\r\nfunction dashboard_civicrm_accessProtected($obj, $prop) {\r\n    $reflection = new ReflectionClass($obj);\r\n    $property = $reflection->getProperty($prop);\r\n    $property->setAccessible(true);\r\n    return $property->getValue($obj);\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/drastik/com.drastikbydesign.stripe/issues/comments/376096580","html_url":"https://github.com/drastik/com.drastikbydesign.stripe/issues/247#issuecomment-376096580","issue_url":"https://api.github.com/repos/drastik/com.drastikbydesign.stripe/issues/247","id":376096580,"user":{"login":"mattwire","id":2052161,"avatar_url":"https://avatars1.githubusercontent.com/u/2052161?v=4","gravatar_id":"","url":"https://api.github.com/users/mattwire","html_url":"https://github.com/mattwire","followers_url":"https://api.github.com/users/mattwire/followers","following_url":"https://api.github.com/users/mattwire/following{/other_user}","gists_url":"https://api.github.com/users/mattwire/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwire/subscriptions","organizations_url":"https://api.github.com/users/mattwire/orgs","repos_url":"https://api.github.com/users/mattwire/repos","events_url":"https://api.github.com/users/mattwire/events{/privacy}","received_events_url":"https://api.github.com/users/mattwire/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T09:04:06Z","updated_at":"2018-03-26T09:04:06Z","author_association":"CONTRIBUTOR","body":"@h-c-c Hey, as you've probably seen it's a fairly substantial rewrite of parts of the extension.  The \"Stripe.js token not passed\" is caused by a whole range of different things (eg. failing to include stripe.js, failing to submit token values if payment form is loaded via ajax etc).\r\nI followed the guidance from stripe and include the stripe js code a lot more liberally (even when it may not be required on the page).  In addition, I switched to the newer \"Civi way\" of implementing payment processor fields as modern browsers (eg. chrome/firefox) don't always include fields added by js in a POST request, but they do when added in the original form."}}
{"actor":{"display_login":"mattwire"}}