Skip to content

Commit 2273f3d

Browse files
committed
Corrected random amount
1 parent ab8d9c1 commit 2273f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PayPalExpressCheckout/authorization-only.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def authorization_only():
2020
payment.payPal = paypal
2121

2222
transactionrequest = apicontractsv1.transactionRequestType()
23-
transactionrequest.amount = Decimal(round(random.uniform(0, 100), 2))
23+
transactionrequest.amount = Decimal(random.uniform(1, 100)).quantize(Decimal('0.01'))
2424
transactionrequest.transactionType = apicontractsv1.transactionTypeEnum.authOnlyTransaction
2525
transactionrequest.payment = payment
2626

0 commit comments

Comments
 (0)