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
* unify the authOnly and authCapture samples
* Formatting and minor wording clarifications
* add more parameters and comments
* fix conditional
make this check explicit for future compatibility
* more versions
print('Message Text : %s'%paymentPageResponse.messages.message[0]['text'].text)
50
50
else:
51
-
ifpaymentPageResponse.messages:
51
+
ifpaymentPageResponse.messagesisnotNone:
52
52
print('Failed to get batch statistics.\nCode:%s \nText:%s'% (paymentPageResponse.messages.message[0]['code'].text,paymentPageResponse.messages.message[0]['text'].text))
This repository contains working code samples which demonstrate Python integration with the Authorize.Net Python SDK(https://github.com/AuthorizeNet/sdk-python).
5
-
The samples are organized just like our API, which you can also try out directly here: http://developer.authorize.net/api/reference
4
+
This repository contains working code samples which demonstrate Python integration with the [Authorize.Net Python SDK](https://github.com/AuthorizeNet/sdk-python).
5
+
The samples are organized just like our API, which you can also try out directly at our [API Reference Guide](http://developer.authorize.net/api/reference).
6
6
7
7
8
8
## Using the Sample Code
9
9
10
-
The samples are all completely independent and self-contained so you can look at them to get a gist of how the method works, you can use the snippets to try in your own sample project, or you can run each sample from the command line.
10
+
The samples are all completely independent and self-contained. You can analyze them to get an understanding of how a particular method works, or you can use the snippets as a starting point for your own project.
11
+
12
+
You can also run each sample directly from the command line.
print('Message Text : %s'%batchStatisticsResponse.messages.message[0]['text'].text)
42
42
else:
43
-
ifbatchStatisticsResponse.messages:
43
+
ifbatchStatisticsResponse.messagesisnotNone:
44
44
print('Failed to get batch statistics.\nCode:%s \nText:%s'% (batchStatisticsResponse.messages.message[0]['code'].text,batchStatisticsResponse.messages.message[0]['text'].text))
print('Message Text : %s'%transactionListResponse.messages.message[0]['text'].text)
37
37
else:
38
-
iftransactionListResponse.messages:
38
+
iftransactionListResponse.messagesisnotNone:
39
39
print('Failed to get transaction list.\nCode:%s \nText:%s'% (transactionListResponse.messages.message[0]['code'].text,transactionListResponse.messages.message[0]['text'].text))
0 commit comments