Skip to content

Commit 40d922d

Browse files
authored
fix time
1 parent f309cf2 commit 40d922d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PaymentTransactions/create-an-accept-payment-transaction.py

Lines 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 time
34

45
from authorizenet import apicontractsv1
56
from authorizenet.apicontrollers import *
@@ -15,7 +16,7 @@ def create_an_accept_payment_transaction(amount):
1516
merchantAuth.transactionKey = constants.transactionKey
1617

1718
# Set the transaction's refId
18-
refId = "ref {}" format(time.time())
19+
refId = "ref {}".format(time.time())
1920

2021
# Create the payment object for a payment nonce
2122
opaqueData = apicontractsv1.opaqueDataType()

0 commit comments

Comments
 (0)