Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab8d9c1

Browse filesBrowse files
committed
Randomizing amount
1 parent f85ceb6 commit ab8d9c1
Copy full SHA for ab8d9c1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎PayPalExpressCheckout/authorization-only.py‎

Copy file name to clipboardExpand all lines: PayPalExpressCheckout/authorization-only.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os, sys
22
import imp
3+
import random
34

45
from authorizenet import apicontractsv1
56
from authorizenet.apicontrollers import *
@@ -19,7 +20,7 @@ def authorization_only():
1920
payment.payPal = paypal
2021

2122
transactionrequest = apicontractsv1.transactionRequestType()
22-
transactionrequest.amount = Decimal('53.00')
23+
transactionrequest.amount = Decimal(round(random.uniform(0, 100), 2))
2324
transactionrequest.transactionType = apicontractsv1.transactionTypeEnum.authOnlyTransaction
2425
transactionrequest.payment = payment
2526

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.