Skip to content

Commit a37b2d6

Browse files
committed
Updated data
1 parent ef527fb commit a37b2d6

8 files changed

+16
-14
lines changed

PayPalExpressCheckout/authorization-only-continued.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ def authorization_only_continued():
1414
paypal = apicontractsv1.payPalType()
1515
paypal.successUrl = "http://www.merchanteCommerceSite.com/Success/TC25262"
1616
paypal.cancelUrl = "http://www.merchanteCommerceSite.com/Success/TC25262"
17-
paypal.payerID = "LM6NCLZ5RAKBY"
17+
paypal.payerID = "586E72QHPGHXS"
1818

1919
payment = apicontractsv1.paymentType()
2020
payment.payPal = paypal
2121

2222
transactionrequest = apicontractsv1.transactionRequestType()
2323
transactionrequest.transactionType = apicontractsv1.transactionTypeEnum.authOnlyContinueTransaction
24-
transactionrequest.refTransId = "2245592542"
24+
transactionrequest.refTransId = "60158280211"
2525
transactionrequest.payment = payment
2626

2727
request = apicontractsv1.createTransactionRequest()

RecurringBilling/create-subscription-from-customer-profile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def create_subscription_from_customer_profile(amount, days, profileId, paymentPr
1818
paymentschedule.interval = apicontractsv1.paymentScheduleTypeInterval() #apicontractsv1.CTD_ANON() #modified by krgupta
1919
paymentschedule.interval.length = days
2020
paymentschedule.interval.unit = apicontractsv1.ARBSubscriptionUnitEnum.days
21-
paymentschedule.startDate = datetime(2020, 8, 30)
21+
paymentschedule.startDate = datetime(2020, 12, 30)
2222
paymentschedule.totalOccurrences = 12
2323
paymentschedule.trialOccurrences = 1
2424

RecurringBilling/create-subscription.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def create_subscription(amount, days):
1818
paymentschedule.interval = apicontractsv1.paymentScheduleTypeInterval() #apicontractsv1.CTD_ANON() #modified by krgupta
1919
paymentschedule.interval.length = days
2020
paymentschedule.interval.unit = apicontractsv1.ARBSubscriptionUnitEnum.days
21-
paymentschedule.startDate = datetime(2020, 8, 30)
21+
paymentschedule.startDate = datetime(2020, 12, 30)
2222
paymentschedule.totalOccurrences = 12
2323
paymentschedule.trialOccurrences = 1
2424
# Giving the credit card info

RecurringBilling/get-subscription.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_subscription(subscriptionId):
2626
print ("Subscription Name : %s" % response.subscription.name)
2727
print ("Subscription Amount: %.2f" % response.subscription.amount)
2828
for transaction in response.subscription.arbTransactions.arbTransaction:
29-
print "Transaction id: %d" % transaction.transId
29+
print ("Transaction id: %d" % transaction.transId)
3030
else:
3131
print ("response code: %s" % response.messages.resultCode)
3232

TransactionReporting/get-batch-statistics.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_batch_statistics():
1414

1515
batchStatisticsRequest = apicontractsv1.getBatchStatisticsRequest()
1616
batchStatisticsRequest.merchantAuthentication = merchantAuth
17-
batchStatisticsRequest.batchId = "4532808"
17+
batchStatisticsRequest.batchId = "11224814"
1818

1919
batchStatisticsController = getBatchStatisticsController(batchStatisticsRequest)
2020

@@ -26,6 +26,8 @@ def get_batch_statistics():
2626
if batchStatisticsResponse.messages.resultCode == apicontractsv1.messageTypeEnum.Ok:
2727
print('Successfully got batch statistics!')
2828

29+
print('Batch :\n', batchStatisticsResponse)
30+
2931
print('Batch Id : %s' % batchStatisticsResponse.batch.batchId)
3032
print('Batch Settlement State : %s' % batchStatisticsResponse.batch.settlementState)
3133
print('Batch Payment Method : %s' % batchStatisticsResponse.batch.paymentMethod)

constants.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiLoginId = "5KP3u95bQpv"
22
transactionKey = "346HZ32z3fP4hTG2"
3-
transactionId = "2245440957"
3+
transactionId = "60158278077"
44
payerId = "LM6NCLZ5RAKBY"
5-
customerProfileId = "123212"
6-
customerPaymentProfileId = "2132322"
7-
customerProfileShippingId = "123132"
5+
customerProfileId = "1929165137"
6+
customerPaymentProfileId = "1841396700"
7+
customerProfileShippingId = "900509021"
88
amount = "12.23"
99
subscriptionId = "123234"
1010
days = 34

list_of_sample_codes.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ update_split_tender_group 1 0
2727
void_transaction 1 0
2828
authorization_and_capture_continued 1 1
2929
authorization_and_capture 1 1
30-
authorization_only_continued 1 1
31-
authorization_only 1 0
30+
authorization_only_continued 1 0
31+
authorization_only 1 1
3232
credit 1 0
3333
get_details 1 0
3434
prior_authorization_capture 1 0
@@ -47,7 +47,7 @@ get_batch_statistics 1 1
4747
get_settled_batch_list 1 1
4848
get_transaction_details 1 0
4949
get_transaction_list 1 1
50-
get_transaction_list_for_customer 1 1
50+
get_transaction_list_for_customer 1 0
5151
get_unsettled_transaction_list 1 0
5252
create_visa_src_transaction 1 0
5353
decrypt_visa_src_data 1 0

test-runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def credit_bank_account(self):
370370
def debit_bank_account(self):
371371
print("debit_bank_account")
372372
modl = imp.load_source('modulename', 'PaymentTransactions/debit-bank-account.py')
373-
return modl.debit_bank_account()
373+
return modl.debit_bank_account(str(round(random.random()*100, 2)))
374374

375375
def refund_transaction(self):
376376
print("refund_transaction")

0 commit comments

Comments
 (0)