{"action":"created","issue":{"url":"https://api.github.com/repos/jcberquist/stripecfc/issues/4","labels_url":"https://api.github.com/repos/jcberquist/stripecfc/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jcberquist/stripecfc/issues/4/comments","events_url":"https://api.github.com/repos/jcberquist/stripecfc/issues/4/events","html_url":"https://github.com/jcberquist/stripecfc/issues/4","id":72354917,"number":4,"title":"convertToCents and application_fee issue","user":{"login":"timsayshey","id":1148940,"avatar_url":"https://avatars.githubusercontent.com/u/1148940?v=3","gravatar_id":"","url":"https://api.github.com/users/timsayshey","html_url":"https://github.com/timsayshey","followers_url":"https://api.github.com/users/timsayshey/followers","following_url":"https://api.github.com/users/timsayshey/following{/other_user}","gists_url":"https://api.github.com/users/timsayshey/gists{/gist_id}","starred_url":"https://api.github.com/users/timsayshey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timsayshey/subscriptions","organizations_url":"https://api.github.com/users/timsayshey/orgs","repos_url":"https://api.github.com/users/timsayshey/repos","events_url":"https://api.github.com/users/timsayshey/events{/privacy}","received_events_url":"https://api.github.com/users/timsayshey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-01T04:53:15Z","updated_at":"2015-05-01T04:55:54Z","closed_at":null,"body":"You will get an error after setting application_fee on response with convertToCents enabled. Line 654 tries to convert application_fee to cents again, but on response application_fee is no longer numeric but a stripe transaction id."},"comment":{"url":"https://api.github.com/repos/jcberquist/stripecfc/issues/comments/98045312","html_url":"https://github.com/jcberquist/stripecfc/issues/4#issuecomment-98045312","issue_url":"https://api.github.com/repos/jcberquist/stripecfc/issues/4","id":98045312,"user":{"login":"timsayshey","id":1148940,"avatar_url":"https://avatars.githubusercontent.com/u/1148940?v=3","gravatar_id":"","url":"https://api.github.com/users/timsayshey","html_url":"https://github.com/timsayshey","followers_url":"https://api.github.com/users/timsayshey/followers","following_url":"https://api.github.com/users/timsayshey/following{/other_user}","gists_url":"https://api.github.com/users/timsayshey/gists{/gist_id}","starred_url":"https://api.github.com/users/timsayshey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timsayshey/subscriptions","organizations_url":"https://api.github.com/users/timsayshey/orgs","repos_url":"https://api.github.com/users/timsayshey/repos","events_url":"https://api.github.com/users/timsayshey/events{/privacy}","received_events_url":"https://api.github.com/users/timsayshey/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T04:55:54Z","updated_at":"2015-05-01T04:55:54Z","body":"Basically to fix it change this: \r\nif ( variables.convertToCents && arrayFindNoCase( variables.currencyFields, key ) ) result[ key ] = result[ key ] / 100;\r\n\r\nTo this:\r\n\r\nif ( variables.convertToCents && arrayFindNoCase( variables.currencyFields, key ) && isNumeric(result[ key ]) ) result[ key ] = result[ key ] / 100;\r\n\r\nJust makes sure it's numeric before it does the deed."}}