Skip to content

Commit

Permalink
rever part of the changes for new API, so we can release
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Dec 9, 2022
1 parent d3bce38 commit 15ed2d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions payments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,15 @@ def get_subscription(self) -> Optional[BaseSubscription]:
def is_recurring(self) -> bool:
return self.get_subscription() is not None

def autocomplete_with_subscription(self):
def auto_complete_recurring(self):
"""
Complete the payment with subscription
Used by providers, that use server initiated subscription workflow
Throws RedirectNeeded if there is problem with the payment that needs to be solved by user
"""
provider = provider_factory(self.variant)
provider.autocomplete_with_subscription(self)
return provider.auto_complete_recurring(self)

def capture(self, amount=None):
"""Capture a pre-authorized payment.
Expand Down

0 comments on commit 15ed2d6

Please sign in to comment.