-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from fintoc-com/feat/integrate-payment-intents
Integrate Payment Intents
- Loading branch information
Showing
6 changed files
with
69 additions
and
3 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
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
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 @@ | ||
"""Module to hold the payment_intents manager.""" | ||
|
||
from fintoc.mixins import ManagerMixin | ||
|
||
|
||
class PaymentIntentsManager(ManagerMixin): | ||
|
||
"""Represents a payment_intents manager.""" | ||
|
||
resource = "payment_intent" | ||
methods = ["all", "get", "create"] |
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,13 @@ | ||
"""Module to hold the PaymentIntent resource.""" | ||
|
||
from fintoc.mixins import ResourceMixin | ||
|
||
|
||
class PaymentIntent(ResourceMixin): | ||
|
||
"""Represents a Fintoc Payment Intent.""" | ||
|
||
mappings = { | ||
"recipient_account": "transfer_account", | ||
"sender_account": "transfer_account", | ||
} |