{"action":"created","issue":{"url":"https://api.github.com/repos/adamthedeveloper/wepay-rails/issues/34","labels_url":"https://api.github.com/repos/adamthedeveloper/wepay-rails/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/adamthedeveloper/wepay-rails/issues/34/comments","events_url":"https://api.github.com/repos/adamthedeveloper/wepay-rails/issues/34/events","html_url":"https://github.com/adamthedeveloper/wepay-rails/issues/34","id":29051639,"number":34,"title":"preapprovals - not initiating","user":{"login":"nuriel","id":706624,"avatar_url":"https://avatars.githubusercontent.com/u/706624?v=3","gravatar_id":"","url":"https://api.github.com/users/nuriel","html_url":"https://github.com/nuriel","followers_url":"https://api.github.com/users/nuriel/followers","following_url":"https://api.github.com/users/nuriel/following{/other_user}","gists_url":"https://api.github.com/users/nuriel/gists{/gist_id}","starred_url":"https://api.github.com/users/nuriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuriel/subscriptions","organizations_url":"https://api.github.com/users/nuriel/orgs","repos_url":"https://api.github.com/users/nuriel/repos","events_url":"https://api.github.com/users/nuriel/events{/privacy}","received_events_url":"https://api.github.com/users/nuriel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-03-09T15:36:37Z","updated_at":"2015-02-24T19:41:20Z","closed_at":null,"body":"hi, having some trouble with implementing a preapproval, the call:\r\n```\r\n response      = wepay_gateway.perform_preapproval(checkout_params)\r\n```\r\n in init_preapproval returns:\r\n```\r\n undefined method `merge' for nil:NilClass\r\n```\r\n it works great for checkout.. any ideas?"},"comment":{"url":"https://api.github.com/repos/adamthedeveloper/wepay-rails/issues/comments/75829935","html_url":"https://github.com/adamthedeveloper/wepay-rails/issues/34#issuecomment-75829935","issue_url":"https://api.github.com/repos/adamthedeveloper/wepay-rails/issues/34","id":75829935,"user":{"login":"keenahn","id":283603,"avatar_url":"https://avatars.githubusercontent.com/u/283603?v=3","gravatar_id":"","url":"https://api.github.com/users/keenahn","html_url":"https://github.com/keenahn","followers_url":"https://api.github.com/users/keenahn/followers","following_url":"https://api.github.com/users/keenahn/following{/other_user}","gists_url":"https://api.github.com/users/keenahn/gists{/gist_id}","starred_url":"https://api.github.com/users/keenahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keenahn/subscriptions","organizations_url":"https://api.github.com/users/keenahn/orgs","repos_url":"https://api.github.com/users/keenahn/repos","events_url":"https://api.github.com/users/keenahn/events{/privacy}","received_events_url":"https://api.github.com/users/keenahn/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T19:41:20Z","updated_at":"2015-02-24T19:41:20Z","body":"Hey @nuriel, not sure if this is still relevant to you. I just started using this gem and ran into the same problem. Most likely, the function is failing because you're either including unrecognized params, or not including all required params. \r\n\r\nhttps://www.wepay.com/developer/reference/preapproval#create\r\n\r\n"}}