Skip to content

Commit 6cd6476

Browse files
committed
Sample code for get customer profile ids
Adds sample code to retrieve customer profile ids for a merchant Signed-off-by: Srijan Misra <[email protected]>
1 parent 41933fa commit 6cd6476

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from authorizenet import apicontractsv1
2+
from authorizenet.apicontrollers import *
3+
4+
merchantAuth = apicontractsv1.merchantAuthenticationType()
5+
merchantAuth.name = '5KP3u95bQpv'
6+
merchantAuth.transactionKey = '4Ktq966gC55GAX7S'
7+
8+
getCustomerProfileIds = apicontractsv1.getCustomerProfileIdsRequest()
9+
getCustomerProfileIds.merchantAuthentication = merchantAuth
10+
11+
getCustomerProfileIdsController = getCustomerProfileIdsController(getCustomerProfileIds)
12+
getCustomerProfileIdsController.execute()
13+
14+
response = getCustomerProfileIdsController.getresponse()
15+
16+
if (response.messages.resultCode=="Ok"):
17+
print "Successfully retrieved customer ids:"
18+
for identity in response.ids.numericString:
19+
print identity
20+
else:
21+
print "response code: %s" % response.messages.resultCode

0 commit comments

Comments
 (0)