{"action":"created","issue":{"url":"https://api.github.com/repos/VivaPayments/API/issues/178","repository_url":"https://api.github.com/repos/VivaPayments/API","labels_url":"https://api.github.com/repos/VivaPayments/API/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/VivaPayments/API/issues/178/comments","events_url":"https://api.github.com/repos/VivaPayments/API/issues/178/events","html_url":"https://github.com/VivaPayments/API/issues/178","id":181687058,"number":178,"title":"Invalid Card Number","user":{"login":"dskalidis","id":22683096,"avatar_url":"https://avatars.githubusercontent.com/u/22683096?v=3","gravatar_id":"","url":"https://api.github.com/users/dskalidis","html_url":"https://github.com/dskalidis","followers_url":"https://api.github.com/users/dskalidis/followers","following_url":"https://api.github.com/users/dskalidis/following{/other_user}","gists_url":"https://api.github.com/users/dskalidis/gists{/gist_id}","starred_url":"https://api.github.com/users/dskalidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dskalidis/subscriptions","organizations_url":"https://api.github.com/users/dskalidis/orgs","repos_url":"https://api.github.com/users/dskalidis/repos","events_url":"https://api.github.com/users/dskalidis/events{/privacy}","received_events_url":"https://api.github.com/users/dskalidis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-07T14:43:26Z","updated_at":"2016-10-11T07:39:56Z","closed_at":"2016-10-11T07:38:50Z","body":"Καλησπέρα, \r\n\r\nΕνώ έχω κάνει όλη την διαδικασία για την viva πληρωμή στο τέλος μου βγάζει error 412 Invalid Card Number. Η κάρτα που χρησιμοποιώ είναι 4111111111111111 με CVV 111. Το τοκεν φτιάχνεται κανονικά και ποστάρεται μαζί με την φόρμα. Έχετε καμιά ιδέα τι μπορεί να φταίει?\r\n\r\nMerchantID: 5e69b107-ced3-462b-81cb-8006c08b5d93"},"comment":{"url":"https://api.github.com/repos/VivaPayments/API/issues/comments/252836212","html_url":"https://github.com/VivaPayments/API/issues/178#issuecomment-252836212","issue_url":"https://api.github.com/repos/VivaPayments/API/issues/178","id":252836212,"user":{"login":"dskalidis","id":22683096,"avatar_url":"https://avatars.githubusercontent.com/u/22683096?v=3","gravatar_id":"","url":"https://api.github.com/users/dskalidis","html_url":"https://github.com/dskalidis","followers_url":"https://api.github.com/users/dskalidis/followers","following_url":"https://api.github.com/users/dskalidis/following{/other_user}","gists_url":"https://api.github.com/users/dskalidis/gists{/gist_id}","starred_url":"https://api.github.com/users/dskalidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dskalidis/subscriptions","organizations_url":"https://api.github.com/users/dskalidis/orgs","repos_url":"https://api.github.com/users/dskalidis/repos","events_url":"https://api.github.com/users/dskalidis/events{/privacy}","received_events_url":"https://api.github.com/users/dskalidis/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T07:39:56Z","updated_at":"2016-10-11T07:39:56Z","body":" protected override void Process(Transaction transaction, VivaNativeConfiguration configuration)\r\n    {\r\n      VivaNativeTransactionDetails transactionDetails = transaction.GetItem<VivaNativeTransactionDetails>();\r\n      PaymentState paymentState = transaction.GetOrCreateItem<PaymentState>();\r\n      OrderResult order = ApiClient.CreateOrder((IApiAuthenticationSettings) configuration, transactionDetails);\r\n      Assert.IsNotNull((object) order, \"Viva payments failed unexpectedly (could not create order)\");\r\n      if (order.ErrorCode > 0)\r\n      {\r\n        paymentState.ErrorCode = order.ErrorCode.ToString();\r\n        paymentState.ErrorDescription = order.ErrorText;\r\n        paymentState.Status = PaymentStatus.Failed;\r\n      }\r\n      else\r\n      {\r\n        TransactionResult transaction1 = ApiClient.CreateTransaction((IApiAuthenticationSettings) configuration, order, transactionDetails);\r\n        Assert.IsNotNull((object) order, \"Viva payments failed unexpectedly (could not create transaction)\");\r\n        if (transaction1.ErrorCode > 0)\r\n        {\r\n          paymentState.ErrorCode = transaction1.ErrorCode.ToString();\r\n          paymentState.ErrorDescription = transaction1.ErrorText;\r\n          paymentState.Status = PaymentStatus.Failed;\r\n        }\r\n        else if (transaction1.StatusId != \"F\")\r\n        {\r\n          paymentState.ErrorCode = transaction1.ErrorCode.ToString();\r\n          paymentState.ErrorDescription = transaction1.ErrorText;\r\n          paymentState.Status = PaymentStatus.Failed;\r\n        }\r\n        else\r\n        {\r\n          paymentState.Status = PaymentStatus.CompletedSuccesfully;\r\n          transaction.SetItem<VivaNativePaymentProviderState>(new VivaNativePaymentProviderState()\r\n          {\r\n            Transaction = transaction1,\r\n            Order = order\r\n          });\r\n        }\r\n      }\r\n    }"}}
{"actor":{"display_login":"dskalidis"}}