Skip to content

Commit 749013c

Browse files
authored
Added transactions in request/response
1 parent 9853bd1 commit 749013c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

RecurringBilling/get-subscription.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def get_subscription(subscriptionId):
1515
getSubscription = apicontractsv1.ARBGetSubscriptionRequest()
1616
getSubscription.merchantAuthentication = merchantAuth
1717
getSubscription.subscriptionId = subscriptionId
18+
getSubscription.includeTransactions = True
1819

1920
getSubscriptionController = ARBGetSubscriptionController(getSubscription)
2021
getSubscriptionController.execute()
@@ -23,10 +24,13 @@ def get_subscription(subscriptionId):
2324

2425
if (response.messages.resultCode=="Ok"):
2526
print ("Subscription Name : %s" % response.subscription.name)
27+
print ("Subscription Amount: %s" % response.subscription.amount)
28+
for transaction in response.subscription.arbTransactions.arbTransaction:
29+
print "Transaction id: %d" % transaction.transId
2630
else:
2731
print ("response code: %s" % response.messages.resultCode)
2832

2933
return response
3034

3135
if(os.path.basename(__file__) == os.path.basename(sys.argv[0])):
32-
get_subscription(constants.subscriptionId)
36+
get_subscription(constants.subscriptionId)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy