Skip to content

Commit 5a0fde1

Browse files
author
Aman Aalam
authored
Merge pull request #26 from trolley/dev
RC 1.0.0
2 parents 2c5d395 + ce245f6 commit 5a0fde1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2792
-1289
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SERVER_URL=
2+
ACCESS_KEY=
3+
SECRET_KEY=

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ paymentrails/exception/__pycache__
77
*.egg-info
88
.idea/
99
venv-*/
10+
dist/
11+
target/

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
[![Latest Stable Version](https://img.shields.io/pypi/v/paymentrails.svg)](https://pypi.python.org/pypi/paymentrails)
1+
[![Latest Stable Version](https://img.shields.io/pypi/v/trolleyhq.svg)](https://pypi.python.org/pypi/trolleyhq)
22

33

4-
# Trolley Python SDK (Previously Payment Rails[^1])
4+
# Trolley Python SDK
55

66
A native Python SDK for the Trolley API
77

8-
[^1]: [Payment Rails is now Trolley](https://www.trolley.com/payment-rails-is-now-trolley-series-a). We're in the process of updating our SDKs to support the new domain. In this transition phase, you might still see "PaymentRails" at some places.
9-
108
## Installation
119

1210
#
@@ -35,30 +33,28 @@ $ python test/integration/RecipientTest.py
3533
## Getting Started
3634

3735
```python
38-
from paymentrails.configuration import Configuration
39-
from paymentrails.recipients import Recipients
36+
from trolley.configuration import Configuration
37+
from trolley.recipients import Recipients
4038

41-
client = Configuration.gateway("YOUR-PUBLIC-API","YOUR-PRIVATE-API","production")
39+
client = Configuration.gateway("ACCESS_KEY","SECRET_KEY")
4240
response = client.recipient.find("R-WJniNq7PUXyboAJetimmJ4")
4341

4442
print(response.id)
4543
```
4644

47-
48-
4945
## Documentation for API Endpoints
5046

5147
All URIs are available at https://docs.trolley.com/
5248

5349
All URIs are relative to *https://api.trolley.com/v1*
5450

55-
5651
### Usage
5752

5853
Methods should all have Python Doc comments to help you understand their usage. As mentioned the [full API documentation](https://docs.trolley.com)
5954
is the best source of information about the API.
6055

61-
For more information please read the [Python API docs](https://github.com/PaymentRails/python-sdk/tree/master/docs/) is available. The best starting point is:
56+
For more information please read the our docs at [https://docs.trolley.com](https://docs.trolley.com).
57+
The [Python API docs](https://github.com/PaymentRails/python-sdk/tree/master/docs/) can be found in this repo. The best starting point is:
6258

6359
| Data Type | SDK Documentation |
6460
| ----- | ----- |

docs/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@
3636
Create a client for the Trolley Python API
3737

3838

39-
client = Configuration.gateway("YOUR-PUBLIC-API","YOUR-PRIVATE-API","production")
39+
client = Configuration.gateway("ACCESS_KEY","SECRET_KEY")
4040

4141
**Parameters:**
4242

4343
| Param | Type | Description |
4444
| ------ | ------ | ------ |
45-
| publicKey | [String] | The public key |
46-
| secretKey | [String] | The secret key |
47-
| enviroment | [String] | The enviroment that should be used |
45+
| ACCESS_KEY | [String] | The public key |
46+
| SECRET_KEY | [String] | The secret key |
4847

4948

5049

paymentrails/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

paymentrails/balances.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

paymentrails/balances_gateway.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

paymentrails/batch.py

Lines changed: 0 additions & 134 deletions
This file was deleted.

paymentrails/batch_gateway.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)