We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f85ceb6 commit ab8d9c1Copy full SHA for ab8d9c1
PayPalExpressCheckout/authorization-only.py
@@ -1,5 +1,6 @@
1
import os, sys
2
import imp
3
+import random
4
5
from authorizenet import apicontractsv1
6
from authorizenet.apicontrollers import *
@@ -19,7 +20,7 @@ def authorization_only():
19
20
payment.payPal = paypal
21
22
transactionrequest = apicontractsv1.transactionRequestType()
- transactionrequest.amount = Decimal('53.00')
23
+ transactionrequest.amount = Decimal(round(random.uniform(0, 100), 2))
24
transactionrequest.transactionType = apicontractsv1.transactionTypeEnum.authOnlyTransaction
25
transactionrequest.payment = payment
26
0 commit comments