fix: payment utils import paths
Since we're splitting payments app from frappe, updating ERPnext paths as well
This commit is contained in:
parent
538f5a9964
commit
ef14da21bc
@ -6,7 +6,6 @@ import json
|
||||
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.integrations.utils import get_payment_gateway_controller
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import flt, get_url, nowdate
|
||||
from frappe.utils.background_jobs import enqueue
|
||||
@ -20,6 +19,8 @@ from erpnext.accounts.party import get_party_account, get_party_bank_account
|
||||
from erpnext.accounts.utils import get_account_currency
|
||||
from erpnext.erpnext_integrations.stripe_integration import create_stripe_subscription
|
||||
|
||||
from payments.utils import get_payment_gateway_controller
|
||||
|
||||
|
||||
class PaymentRequest(Document):
|
||||
def validate(self):
|
||||
|
@ -7,10 +7,12 @@ from urllib.parse import urlencode
|
||||
import frappe
|
||||
import gocardless_pro
|
||||
from frappe import _
|
||||
from frappe.integrations.utils import create_payment_gateway, create_request_log
|
||||
from frappe.integrations.utils import create_request_log
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import call_hook_method, cint, flt, get_url
|
||||
|
||||
from payments.utils import create_payment_gateway
|
||||
|
||||
|
||||
class GoCardlessSettings(Document):
|
||||
supported_currencies = ["EUR", "DKK", "GBP", "SEK", "AUD", "NZD", "CAD", "USD"]
|
||||
|
@ -6,7 +6,7 @@ from json import dumps, loads
|
||||
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.integrations.utils import create_payment_gateway, create_request_log
|
||||
from frappe.integrations.utils import create_request_log
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import call_hook_method, fmt_money, get_request_site_address
|
||||
|
||||
@ -16,6 +16,8 @@ from erpnext.erpnext_integrations.doctype.mpesa_settings.mpesa_custom_fields imp
|
||||
)
|
||||
from erpnext.erpnext_integrations.utils import create_mode_of_payment
|
||||
|
||||
from payments.utils import create_payment_gateway
|
||||
|
||||
|
||||
class MpesaSettings(Document):
|
||||
supported_currencies = ["KES"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user