{"action":"created","issue":{"url":"https://api.github.com/repos/odero/django-pesapal/issues/19","repository_url":"https://api.github.com/repos/odero/django-pesapal","labels_url":"https://api.github.com/repos/odero/django-pesapal/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/odero/django-pesapal/issues/19/comments","events_url":"https://api.github.com/repos/odero/django-pesapal/issues/19/events","html_url":"https://github.com/odero/django-pesapal/issues/19","id":358929458,"node_id":"MDU6SXNzdWUzNTg5Mjk0NTg=","number":19,"title":"PaymentView() takes no argument error","user":{"login":"wizGipsBrian","id":18655546,"node_id":"MDQ6VXNlcjE4NjU1NTQ2","avatar_url":"https://avatars3.githubusercontent.com/u/18655546?v=4","gravatar_id":"","url":"https://api.github.com/users/wizGipsBrian","html_url":"https://github.com/wizGipsBrian","followers_url":"https://api.github.com/users/wizGipsBrian/followers","following_url":"https://api.github.com/users/wizGipsBrian/following{/other_user}","gists_url":"https://api.github.com/users/wizGipsBrian/gists{/gist_id}","starred_url":"https://api.github.com/users/wizGipsBrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wizGipsBrian/subscriptions","organizations_url":"https://api.github.com/users/wizGipsBrian/orgs","repos_url":"https://api.github.com/users/wizGipsBrian/repos","events_url":"https://api.github.com/users/wizGipsBrian/events{/privacy}","received_events_url":"https://api.github.com/users/wizGipsBrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-11T07:55:26Z","updated_at":"2018-09-29T07:51:19Z","closed_at":null,"author_association":"NONE","body":"so am very new to Pesapal and i cloned the django nod into my project, \r\nso in my view i created a class PaymentView that extends the PaymentRequestMixin  \r\n`class PaymentView(PaymentRequestMixin):\r\n    def get_pesapal_payment_iframe(self):\r\n        order_info = {\r\n            'first_name': 'firstname',\r\n            'last_name': 'lastname',\r\n            'amount': 1000,\r\n            'description': 'test payment',\r\n            'reference': 'Test-payment123',  \r\n            'email': 'email@gmail.com',\r\n        }\r\n        iframe_src_url = self.get_payment_url(**order_info)\r\n        return iframe_src_url`\r\nI keep on getting this error \r\n`Exception Type: | TypeError\r\nPaymentView() takes no arguments\r\n`\r\nAm using Django 2.x and python3.x."},"comment":{"url":"https://api.github.com/repos/odero/django-pesapal/issues/comments/425625089","html_url":"https://github.com/odero/django-pesapal/issues/19#issuecomment-425625089","issue_url":"https://api.github.com/repos/odero/django-pesapal/issues/19","id":425625089,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTYyNTA4OQ==","user":{"login":"odero","id":380686,"node_id":"MDQ6VXNlcjM4MDY4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/380686?v=4","gravatar_id":"","url":"https://api.github.com/users/odero","html_url":"https://github.com/odero","followers_url":"https://api.github.com/users/odero/followers","following_url":"https://api.github.com/users/odero/following{/other_user}","gists_url":"https://api.github.com/users/odero/gists{/gist_id}","starred_url":"https://api.github.com/users/odero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odero/subscriptions","organizations_url":"https://api.github.com/users/odero/orgs","repos_url":"https://api.github.com/users/odero/repos","events_url":"https://api.github.com/users/odero/events{/privacy}","received_events_url":"https://api.github.com/users/odero/received_events","type":"User","site_admin":false},"created_at":"2018-09-29T07:51:19Z","updated_at":"2018-09-29T07:51:19Z","author_association":"OWNER","body":"Your url patterns are the problem. You should be using `PaymentView.as_view()` This: \r\n```\r\nurlpatterns = [\r\n   path('pay/', PaymentView.as_view(), name='pay'),\r\n]\r\n```\r\n"}}
{"actor":{"display_login":"odero"}}