Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_snap_gateway():
client = Client(
client_key="Vt-Client-Key",
server_key="Vt-Server-Key",
environment_tyoe=PRODUCTION
environment_type=PRODUCTION
)

snap = gateway.Snap(client=client)
Expand Down Expand Up @@ -58,7 +58,7 @@ with examples on how to better utilise this library.
To install the package:

```
pip install midtrans
python setup.py install
```

### For maintainer
Expand Down
4 changes: 2 additions & 2 deletions midtrans/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class Client:
def __init__(self,
client_key,
server_key,
environment_tyoe=SANDBOX):
environment_type=SANDBOX):

self.environment_type = environment_tyoe
self.environment_type = environment_type
self.client_key = client_key
self.server_key = server_key

Expand Down
8 changes: 4 additions & 4 deletions midtrans/envtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ def __repr__(self):

SANDBOX = EnvironmentType()
SANDBOX.envname = "SANDBOX"
SANDBOX.api_url = "https://api.sandbox.veritrans.co.id"
SANDBOX.app_url = "https://app.sandbox.veritrans.co.id"
SANDBOX.api_url = "https://api.sandbox.midtrans.com"
SANDBOX.app_url = "https://app.sandbox.midtrans.com"

PRODUCTION = EnvironmentType()
PRODUCTION.envname = "PRODUCTION"
PRODUCTION.api_url = "https://api.veritrans.co.id"
PRODUCTION.app_url = "https://app.veritrans.co.id"
PRODUCTION.api_url = "https://api.midtrans.com"
PRODUCTION.app_url = "https://app.midtrans.com"
2 changes: 1 addition & 1 deletion midtrans/response/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self,
total_record=None):

'''
Bellow are the fields that always present in any kind of response
Below are the fields that are always present in any kind of response
'''
self.status_code = int(status_code)
self.status_message = status_message
Expand Down
4 changes: 3 additions & 1 deletion midtrans/response/snap_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ class SnapResponse(object):
def __init__(self,
token=None,
status_code=None,
error_messages=None):
error_messages=None,
redirect_url=None):

self.status_code = status_code
self.token = token
self.error_messages = error_messages
self.redirect_url = redirect_url