From 3d340d2158c731b5e720df4afa00fa2e75b3decc Mon Sep 17 00:00:00 2001 From: Cornelius Ashley-Osuzoka <59456456+corneliusyaovi@users.noreply.github.com> Date: Mon, 11 Mar 2024 17:53:28 +0100 Subject: [PATCH] remove example.py --- example.py | 80 ------------------------------------------------------ 1 file changed, 80 deletions(-) delete mode 100644 example.py diff --git a/example.py b/example.py deleted file mode 100644 index c709718..0000000 --- a/example.py +++ /dev/null @@ -1,80 +0,0 @@ -from rave_python import Rave, RaveExceptions, Misc -PublicKey = "YOUR_PUBLIC_KEY" -SecretKey = "YOUR_SECRET_KEY" - -rave = Rave(PublicKey, SecretKey, production=True, usingEnv=False) - -payload = { - "amount": 30, - "PBFPubKey": PublicKey, - "currency": "NGN", - "email": "user@example.com", - "meta": [{"metaname": "test", "metavalue": "12383"}], - "ip": "123.0.1.3", - "firstname": "Flutterwave", - "lastname": "Tester", - "is_token": False -} - -payload_2 = { - "currency": "TZS", - "country": "TZ", - "amount": 1000, - "email": "user@example.com", - "firstname": "John", - "lastname": "Doe", - "phonenumber": "255123456789", -} - -payload_3 = { - "cardno": "4187451811620618", - "cvv": "306", - "expirymonth": "05", - "expiryyear": "25", - "amount": "100", - "email": "korneliosyaovi@gmail.com", - "phonenumber": "08109328188", - "firstname": "Cornelius", - "lastname": "Ashley", - "IP": "355426087298442", - "pin": "7991", - "currency": "NGN" -} - -payload_4 = { - "token": "flw-t1nf-45a7a6bfbe2fb30a70c1d974d84e31c5-k3n", - "amount": "100", - "email": "korneliosyaovi@gmail.com", - "phonenumber": "08109328188", - "firstname": "Cornelius", - "lastname": "Ashley", - "IP": "355426087298442", - "currency": "NGN", - "country": "NG" -} - -payload_5 = { - "amount": 30, - "PBFPubKey": PublicKey, - "currency": "NGN", - "email": "user@example.com", - "meta": [{"metaname": "test", "metavalue": "12383"}], - "ip": "123.0.1.3", - "firstname": "Flutterwave", - "lastname": "Tester", -} - -payload_6 = { - "amount": 2, - "PBFPubKey": PublicKey, - "currency": "GBP", - "email": "user@example.com", - "meta": [{"metaname": "test", "metavalue": "12383"}], - "ip": "123.0.1.3", - "firstname": "Flutterwave", - "lastname": "Tester" -} - - -# print(rave.Enaira.charge(payload)) -print(rave.Enaira.charge(payload))