This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added Android refund api (#3922)
* feat: Added Android refund api Like Apple android doesn't have callback for every refund. Therefore we have created an endpoint which we will hit daily through ecommerce worker. Learner-9149
- Loading branch information
1 parent
9495e3e
commit 4e117d0
Showing
11 changed files
with
386 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from django.contrib import admin | ||
from solo.admin import SingletonModelAdmin | ||
|
||
from ecommerce.extensions.iap.models import IAPProcessorConfiguration, PaymentProcessorResponseExtension | ||
|
||
admin.site.register(IAPProcessorConfiguration, SingletonModelAdmin) | ||
|
||
|
||
@admin.register(PaymentProcessorResponseExtension) | ||
class PaymentProcessorResponseExtensionAdmin(admin.ModelAdmin): | ||
list_display = ('original_transaction_id', 'processor_response') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
""" | ||
Exceptions used by the iap v1 api. | ||
""" | ||
|
||
|
||
class RefundCompletionException(Exception): | ||
""" | ||
Exception if a refund is not approved | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.