Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plan not found #3

Open
believeohiozua opened this issue Feb 11, 2020 · 0 comments
Open

plan not found #3

believeohiozua opened this issue Feb 11, 2020 · 0 comments

Comments

@believeohiozua
Copy link

Request Method: GET
http://127.0.0.1:8000/profile/abc/?csrfmiddlewaretoken=o3M4RnKagE4OwQ9ShDe6XMUp6XtCXBvaqFXMODoEwhBvaKLQZBh160sz7kEBT9zF&submission=submissionfee&author=9&slug=am-in-love-episode-01&pub_id=3&bank_payment_submission=
2.2.9
APIError
Plan not found
C:\Users\abc\Envs\prof\lib\site-packages\paystack\resource.py in initialize, line 316
C:\Users\abc\Envs\prof\Scripts\python.exe
3.7.3
['G:\WEBDEV\src', 'C:\Users\abc\Envs\prof\Scripts\python37.zip', 'C:\Users\abc\Envs\prof\DLLs', 'C:\Users\MrBIG\Envs\prof\lib', 'C:\Users\abc\Envs\prof\Scripts', 'c:\users\abc\appdata\local\continuum\anaconda3\Lib', 'c:\users\abc\appdata\local\continuum\anaconda3\DLLs', 'C:\Users\abc\Envs\prof', 'C:\Users\abc\Envs\prof\lib\site-packages']
Wed, 12 Feb 2020 06:36:47 +0000

code

   def main():
                        rand = ''.join(
                            [random.choice(
                                string.ascii_letters + string.digits) for n in range(16)])
                        secret_key ='**********************************'
                        random_ref = rand
                        test_email = '************@***.com'
                        test_amount = 2000*100
                        authorization_code=secret_key
                        plan = 'basic'
                        client = TransactionResource(secret_key, random_ref)
                        response = client.initialize(test_amount,                                                    
                                                    test_email,                                                                                          
                                                    plan)
      
                        print('\n RESPONSE',response)
                        client.authorize() # Will open a browser window for client to enter card details
                        verify = client.verify() # Verify client credentials
                        print('\n Verify',verify)
                        print('\n Charge',client.charge()) # Charge an already exsiting client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant