Skip to content

Commit

Permalink
Update documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisulfahnur authored Apr 23, 2020
1 parent e993077 commit c3adbf6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ from xenditclient import XenditClient

client = XenditClient(api_key='<your-secret-key>')
```
### Get Balance
```python
res_dict = client.balance.get_balance('CASH')
print(res_dict)
# {
# 'balance': 1000137690
# }
```

### EWallets
#### Create Payment
Expand All @@ -35,7 +43,7 @@ params = {
'phone':'081234567890'
}

res_dict, _ = client.ewallet.create(params)
res_dict = client.ewallet.create(params)
print(res_dict)
# {
# "business_id": "12345678",
Expand All @@ -50,7 +58,7 @@ print(res_dict)
#### Get Payment Status

```python
res_dict, _ = client.ewallet.get_payment_status(external_id='21345', payment_method='OVO')
res_dict = client.ewallet.get_payment_status(external_id='21345', payment_method='OVO')
print(res_dict)
# {
# "amount": "10000",
Expand Down

0 comments on commit c3adbf6

Please sign in to comment.