You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("Deposit Request is "+str(deposit_response.is_ok))
174
173
```
175
174
176
175
In order to send a `Credit Card Deposit` we need to append the appropriate [Credit Card Params](https://doc.zotapay.com/deposit/1.0/?python#card-payment-integration-2)
177
176
which is achieved through sending a `MGCardDepositRequest`
print("Deposit Request is "+str(deposit_response.is_ok))
208
208
```
209
209
210
-
#####Working with `Deposit Response`
210
+
### Working with `Deposit Response`
211
211
Each deposit attempt against a Zotapay returns either a `MGDepositResponse` or `MGCardDepositResponse`.
212
212
213
213
The above objects are simply a wrapper around the standard HTTP response as described [here](https://doc.zotapay.com/deposit/1.0/?python#issue-a-deposit-request).
214
214
215
215
The response classes contain an additional helper method that validates the signature of the response when provided with a `merchant_secret_key`
216
216
217
-
####Payout
217
+
## Payout
218
218
Sending a payout request is almost identical to sending a deposit request.
219
219
220
220
The request is built:
221
221
222
-
```
222
+
```python
223
223
from zotapaysdk.mg_requests import MGPayoutRequest
224
224
225
225
example_payout_request = \
@@ -248,18 +248,18 @@ example_payout_request = \
248
248
249
249
The client returns `MGPayoutResponse` which is again a wrapper around the standard HTTP response.
250
250
251
-
####Callbacks
251
+
## Callbacks
252
252
`MGCallback` is a class that parses the raw HTTP Request sent from Zotapay to the configured endpoint. It's purpose
253
253
is to make working with callbacks manageable.
254
254
255
255
256
-
####Validations
256
+
## Validations
257
257
The `MGRequest` class implements a `validate()` method which can be used for parameter validation of the request
258
258
offline before the request is being sent. It's purpose is to check whether all the values passsed to the different
259
259
parameters is in-line with what Zotapay's endpoint expects. See the API DOCS for more info and guidance about the
In order to release the package, commit anything to master and a new tag should be created. Go to releases and simply publish the latest draft release!
0 commit comments