{"action":"created","issue":{"url":"https://api.github.com/repos/conekta/conekta-php/issues/9","labels_url":"https://api.github.com/repos/conekta/conekta-php/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/conekta/conekta-php/issues/9/comments","events_url":"https://api.github.com/repos/conekta/conekta-php/issues/9/events","html_url":"https://github.com/conekta/conekta-php/issues/9","id":65740496,"number":9,"title":"Double payment on subscription!","user":{"login":"victorhqc","id":726113,"avatar_url":"https://avatars.githubusercontent.com/u/726113?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhqc","html_url":"https://github.com/victorhqc","followers_url":"https://api.github.com/users/victorhqc/followers","following_url":"https://api.github.com/users/victorhqc/following{/other_user}","gists_url":"https://api.github.com/users/victorhqc/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhqc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhqc/subscriptions","organizations_url":"https://api.github.com/users/victorhqc/orgs","repos_url":"https://api.github.com/users/victorhqc/repos","events_url":"https://api.github.com/users/victorhqc/events{/privacy}","received_events_url":"https://api.github.com/users/victorhqc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T17:44:23Z","updated_at":"2015-04-02T04:54:51Z","closed_at":"2015-04-02T00:50:36Z","body":"Hi, I'm trying to implement a subscription system using conekta and there is an odd behaviour in the payments and I don't know if there's something going wrong.\r\n\r\n## Creating the plan\r\nCode:\r\n![plan_code](https://cloud.githubusercontent.com/assets/726113/6947323/3afaab64-d85b-11e4-80f5-7c92a72de66b.png)\r\n\r\nAnd is correctly created (except for the 6 months instead of 12 but I don't think that's a problem)\r\n![plan](https://cloud.githubusercontent.com/assets/726113/6947334/5491ed58-d85b-11e4-8420-c4cf4d587701.png)\r\n\r\n## Creating the client\r\nAfter the plan is created I make a new test client.\r\n![client_code](https://cloud.githubusercontent.com/assets/726113/6947359/76932728-d85b-11e4-983c-8e38b334dc55.png)\r\n\r\nCorrectly created:\r\n![client](https://cloud.githubusercontent.com/assets/726113/6947366/7f0b8152-d85b-11e4-8d37-841ba72a328c.png)\r\n\r\n## Subscribing\r\nHere is the problem, I make just one request to subscribe and get all the information from the API correct, but it generates 2 payments instead of 1:\r\n![subscribe_code](https://cloud.githubusercontent.com/assets/726113/6947376/9b740aa8-d85b-11e4-9e53-43659891cae9.png)\r\n\r\n![subscribe](https://cloud.githubusercontent.com/assets/726113/6947377/a25e0eb8-d85b-11e4-9d7f-837b1c8a5b10.png)\r\n\r\nI'm I doing something wrong? Or is this how is supposed to work? Its weird cause is always 2 minutes difference between the 2 charges.\r\n\r\nThanks in advance!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/conekta/conekta-php/issues/comments/88735205","html_url":"https://github.com/conekta/conekta-php/issues/9#issuecomment-88735205","issue_url":"https://api.github.com/repos/conekta/conekta-php/issues/9","id":88735205,"user":{"login":"victorhqc","id":726113,"avatar_url":"https://avatars.githubusercontent.com/u/726113?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhqc","html_url":"https://github.com/victorhqc","followers_url":"https://api.github.com/users/victorhqc/followers","following_url":"https://api.github.com/users/victorhqc/following{/other_user}","gists_url":"https://api.github.com/users/victorhqc/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhqc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhqc/subscriptions","organizations_url":"https://api.github.com/users/victorhqc/orgs","repos_url":"https://api.github.com/users/victorhqc/repos","events_url":"https://api.github.com/users/victorhqc/events{/privacy}","received_events_url":"https://api.github.com/users/victorhqc/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T04:54:51Z","updated_at":"2015-04-02T04:54:51Z","body":"Oh nice, thanks for answering! :)"}}