| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | import time | |
| 4 | 4 | ||
| 5 | 5 | from authorizenet import apicontractsv1 | |
| 6 | 6 | from authorizenet.apicontrollers import * | |
| 7 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 7 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 8 | 8 | from decimal import * | |
| 9 | 9 | ||
| 10 | 10 | def create_an_accept_payment_transaction(amount): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | from decimal import * | |
| 8 | 8 | ||
| 9 | 9 | def get_accept_customer_profile_page(customerProfileId): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | from decimal import * | |
| 8 | 8 | ||
| 9 | 9 | def get_an_accept_payment_page(amount): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | ||
| 8 | 8 | def create_customer_payment_profile(customerProfileId): | |
| 9 | 9 | merchantAuth = apicontractsv1.merchantAuthenticationType() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | ||
| 8 | 8 | def create_customer_profile_from_transaction(transactionId): | |
| 9 | 9 | merchantAuth = apicontractsv1.merchantAuthenticationType() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | import random | |
| 8 | 8 | ||
| 9 | 9 | def create_customer_profile(): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | # Gives error if an address is already present for the given customer Id | |
| 5 | 5 | from authorizenet import apicontractsv1 | |
| 6 | 6 | from authorizenet.apicontrollers import * | |
| 7 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 7 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 8 | 8 | ||
| 9 | 9 | def create_customer_shipping_address(customerProfileId): | |
| 10 | 10 | # Give merchant details | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | ||
| 8 | 8 | def delete_customer_payment_profile(customerProfileId, customerPaymentProfileId): | |
| 9 | 9 | merchantAuth = apicontractsv1.merchantAuthenticationType() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | ||
| 8 | 8 | def delete_customer_profile(customerProfileId): | |
| 9 | 9 | merchantAuth = apicontractsv1.merchantAuthenticationType() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | import os, sys | |
| 2 | - import imp | ||
| 2 | + from importlib.machinery import SourceFileLoader | ||
| 3 | 3 | ||
| 4 | 4 | from authorizenet import apicontractsv1 | |
| 5 | 5 | from authorizenet.apicontrollers import * | |
| 6 | - constants = imp.load_source('modulename', 'constants.py') | ||
| 6 | + constants = SourceFileLoader('modulename', 'constants.py').load_module() | ||
| 7 | 7 | ||
| 8 | 8 | def delete_customer_shipping_address(customerProfileId, customerProfileShippingId): | |
| 9 | 9 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments