Skip to content

Commit

Permalink
Merge pull request #37182 from s-aga-r/MOVE-PAYMENTS-GATEWAYS
Browse files Browse the repository at this point in the history
refactor!: move payment gateways to the payments app
  • Loading branch information
s-aga-r authored Oct 14, 2023
2 parents f4a294c + 296b233 commit afef9dc
Show file tree
Hide file tree
Showing 32 changed files with 10 additions and 2,305 deletions.
4 changes: 3 additions & 1 deletion erpnext/accounts/doctype/payment_request/payment_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from erpnext.accounts.doctype.subscription_plan.subscription_plan import get_plan_rate
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 erpnext.utilities import payment_app_import_guard


Expand Down Expand Up @@ -393,6 +392,9 @@ def on_payment_authorized(self, status=None):

def create_subscription(self, payment_provider, gateway_controller, data):
if payment_provider == "stripe":
with payment_app_import_guard():
from payments.payment_gateways.stripe_integration import create_stripe_subscription

return create_stripe_subscription(gateway_controller, data)


Expand Down
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit afef9dc

Please sign in to comment.