{"action":"created","issue":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1787","repository_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1787/labels{/name}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1787/comments","events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1787/events","html_url":"https://github.com/AffiliateWP/AffiliateWP/issues/1787","id":187096013,"number":1787,"title":"Integration: Caldera Forms","user":{"login":"michaelbeil","id":4752949,"avatar_url":"https://avatars.githubusercontent.com/u/4752949?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelbeil","html_url":"https://github.com/michaelbeil","followers_url":"https://api.github.com/users/michaelbeil/followers","following_url":"https://api.github.com/users/michaelbeil/following{/other_user}","gists_url":"https://api.github.com/users/michaelbeil/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbeil/subscriptions","organizations_url":"https://api.github.com/users/michaelbeil/orgs","repos_url":"https://api.github.com/users/michaelbeil/repos","events_url":"https://api.github.com/users/michaelbeil/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbeil/received_events","type":"User","site_admin":false},"labels":[{"id":464416822,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/feature%20request","name":"feature request","color":"923F00","default":false},{"id":230490395,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/Has%20PR","name":"Has PR","color":"bfe5bf","default":false},{"id":113520527,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/needs%20testing","name":"needs testing","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"sumobi","id":52581,"avatar_url":"https://avatars.githubusercontent.com/u/52581?v=3","gravatar_id":"","url":"https://api.github.com/users/sumobi","html_url":"https://github.com/sumobi","followers_url":"https://api.github.com/users/sumobi/followers","following_url":"https://api.github.com/users/sumobi/following{/other_user}","gists_url":"https://api.github.com/users/sumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumobi/subscriptions","organizations_url":"https://api.github.com/users/sumobi/orgs","repos_url":"https://api.github.com/users/sumobi/repos","events_url":"https://api.github.com/users/sumobi/events{/privacy}","received_events_url":"https://api.github.com/users/sumobi/received_events","type":"User","site_admin":false},"assignees":[{"login":"sumobi","id":52581,"avatar_url":"https://avatars.githubusercontent.com/u/52581?v=3","gravatar_id":"","url":"https://api.github.com/users/sumobi","html_url":"https://github.com/sumobi","followers_url":"https://api.github.com/users/sumobi/followers","following_url":"https://api.github.com/users/sumobi/following{/other_user}","gists_url":"https://api.github.com/users/sumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumobi/subscriptions","organizations_url":"https://api.github.com/users/sumobi/orgs","repos_url":"https://api.github.com/users/sumobi/repos","events_url":"https://api.github.com/users/sumobi/events{/privacy}","received_events_url":"https://api.github.com/users/sumobi/received_events","type":"User","site_admin":false},{"login":"ramiabraham","id":1619448,"avatar_url":"https://avatars.githubusercontent.com/u/1619448?v=3","gravatar_id":"","url":"https://api.github.com/users/ramiabraham","html_url":"https://github.com/ramiabraham","followers_url":"https://api.github.com/users/ramiabraham/followers","following_url":"https://api.github.com/users/ramiabraham/following{/other_user}","gists_url":"https://api.github.com/users/ramiabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/ramiabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramiabraham/subscriptions","organizations_url":"https://api.github.com/users/ramiabraham/orgs","repos_url":"https://api.github.com/users/ramiabraham/repos","events_url":"https://api.github.com/users/ramiabraham/events{/privacy}","received_events_url":"https://api.github.com/users/ramiabraham/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones/53","html_url":"https://github.com/AffiliateWP/AffiliateWP/milestone/53","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones/53/labels","id":1416664,"number":53,"title":"2.0","description":"","creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":15,"state":"open","created_at":"2015-11-17T20:46:05Z","updated_at":"2016-12-29T11:47:09Z","due_on":"2017-01-10T08:00:00Z","closed_at":null},"comments":10,"created_at":"2016-11-03T15:37:26Z","updated_at":"2016-12-29T17:59:46Z","closed_at":null,"body":"It might be a good idea to add an integration for Caldera Forms. \r\n\r\nRef: https://secure.helpscout.net/conversation/272708245/45996/?folderId=205524"},"comment":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/comments/269668128","html_url":"https://github.com/AffiliateWP/AffiliateWP/issues/1787#issuecomment-269668128","issue_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/1787","id":269668128,"user":{"login":"Shelob9","id":1994311,"avatar_url":"https://avatars.githubusercontent.com/u/1994311?v=3","gravatar_id":"","url":"https://api.github.com/users/Shelob9","html_url":"https://github.com/Shelob9","followers_url":"https://api.github.com/users/Shelob9/followers","following_url":"https://api.github.com/users/Shelob9/following{/other_user}","gists_url":"https://api.github.com/users/Shelob9/gists{/gist_id}","starred_url":"https://api.github.com/users/Shelob9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shelob9/subscriptions","organizations_url":"https://api.github.com/users/Shelob9/orgs","repos_url":"https://api.github.com/users/Shelob9/repos","events_url":"https://api.github.com/users/Shelob9/events{/privacy}","received_events_url":"https://api.github.com/users/Shelob9/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T17:59:46Z","updated_at":"2016-12-29T17:59:46Z","body":"> Setting referrals to \"unpaid\" on a successful payment\r\n> \r\n> There's no generic \"payment completed\" hook (like Gravity Forms)\r\n> There are 4 payment gateways (\"processors\") for Caldera Forms. Of those, only Stripe and Braintree have payment completed hooks. PayPal and Authorize.net do not. For now we'll have 2 write 2 methods to mark the referral as unpaid.\r\n\r\nThis is correct. We do not have [this concept](https://github.com/CalderaWP/Caldera-Forms/issues/1076). The [caldera_forms_submit_complete](https://calderaforms.com/doc/caldera_forms_submit_complete/) hook will run when a submission has passed all validation and is about to be saved. \r\n\r\nFor Paypal, in the Callback on that hook, do this:\r\n```\r\n    global $transdata;\r\n    if( ! empty( $transdata['paypal_express'] ) && ! empty( $transdata['paypal_express']['result'] ) ){\r\n        //$transdata['paypal_express']['result'] is info returned from PayPal about success\r\n    \r\n    }elseif( ! empty( $transdata['note'] ) ){\r\n        //$transdata['note'] is error from paypal\r\n    }else{\r\n        //Things went really wrong\r\n    }\r\n```\r\n\r\nFor authorize.net there really is no good way to do this. @shelob9 hangs head in shame.\r\n\r\n@sumobi What is your deadline on this? I can add hooks to each of them to make your life easy -- but that would mean your integration would require the new version of the add-ons. If you want to do that, please let me know what data you need in the callback.\r\n\r\n> Linking the reference (entry ID) to the standalone entry page.\r\n> \r\n> There's no direct entry page so we can't link the reference (entry ID) from the referrals screen. Entries are opened in modal windows.\r\nThis is not a thing we have yet. It will be once the new entry viewer is done, but that's probably 2 versions out. @sumobi I suggest a separate issue to add that link later. But make sure you are tracking entry ID.\r\n\r\n\r\n> Rejecting referrals on refund\r\n> \r\n\r\nThere is no refund hook that I can see, or a hook when an entry is deleted.\r\n We do not process refunds through Caldera Forms. \r\n\r\n>Listing products in the referral\r\n>\r\n>I haven't found a way to get a list of products for the entry since there are no product fields. >Essentially any field can be used for the final calculation. Currently it just lists the form name.\r\nThere is no concept of a product. Our EDD add-on adds an auto-population field for EDD products, but that's it. Sometimes people do auto-populated field based on Woo's product post type, but typically they are hardcoding their product/ services to a select field settings.\r\n\r\n>Testing Braintree\r\n>\r\n>I haven't been able to successfully test Braintree, it's showing an error before I submit the form of >\"Actual Plan is required\". I have One Time Payment selected in the processor options. It seems this >error is related to the Subscription Plan option so I suspect this might be a bug.\r\n@sumobi Can you tell me which version of Braintree add-on and Caldera Forms you are using? Your error is confusing to me as single payment and payment plan  are two totally different options. Do you have both processors?\r\n\r\n\r\n> Testing Stripe\r\n> \r\n> Make sure the form has ajax submissions enabled. When turned off, the Stripe payment window opens and then closes after a second, then shows a No Stripe token found, please wait for the page to load fully and try again. message. Tested without any other plugins active and this is still the case.\r\n\r\nInteresting bug, I can confirm this and will get it fixed."}}
{"actor":{"display_login":"Shelob9"}}