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 ab8d9c1 commit 2273f3dCopy full SHA for 2273f3d
PayPalExpressCheckout/authorization-only.py
@@ -20,7 +20,7 @@ def authorization_only():
20
payment.payPal = paypal
21
22
transactionrequest = apicontractsv1.transactionRequestType()
23
- transactionrequest.amount = Decimal(round(random.uniform(0, 100), 2))
+ transactionrequest.amount = Decimal(random.uniform(1, 100)).quantize(Decimal('0.01'))
24
transactionrequest.transactionType = apicontractsv1.transactionTypeEnum.authOnlyTransaction
25
transactionrequest.payment = payment
26
0 commit comments