File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from authorizenet import apicontractsv1
2+ from authorizenet .apicontrollers import *
3+ from decimal import *
4+
5+ merchantAuth = apicontractsv1 .merchantAuthenticationType ()
6+ merchantAuth .name = '5KP3u95bQpv'
7+ merchantAuth .transactionKey = '4Ktq966gC55GAX7S'
8+
9+
10+ getSubscription = apicontractsv1 .ARBGetSubscriptionRequest ()
11+ getSubscription .merchantAuthentication = merchantAuth
12+ getSubscription .subscriptionId = "2260421"
13+
14+ getSubscriptionController = ARBGetSubscriptionController (getSubscription )
15+ getSubscriptionController .execute ()
16+
17+ response = getSubscriptionController .getresponse ()
18+
19+ if (response .messages .resultCode == "Ok" ):
20+ print "Subscription Name : %s" % response .subscription .name
21+ else :
22+ print "response code: %s" % response .messages .resultCode
You can’t perform that action at this time.
0 commit comments