Skip to content

Commit eab3dd8

Browse files
Ryan HopeWhyNotHugo
authored andcommitted
save payment object after transaction id and status is updated
1 parent aebc41f commit eab3dd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

payments/paypal/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def get_form(self, payment, data=None):
232232
links = self._get_links(payment)
233233
redirect_to = links["approval_url"]
234234
payment.change_status(PaymentStatus.WAITING)
235+
payment.save()
235236
raise RedirectNeeded(redirect_to["href"])
236237

237238
def process_data(self, payment, request):

0 commit comments

Comments
 (0)