Skip to content

Cards cannot charge/hold themselves #19

Open
@mjallday

Description

@mjallday

It's creating a hold / debit against account.holds_uri, not against the card itself. Same for BankAccounts

https://github.com/balanced/balanced-python/blob/master/balanced/resources.py#L912

def hold(self, amount, meta=None, description=None):
    """
    Creates a Hold of funds from this Card to your Marketplace.

    :rtype: Hold
    """
    meta = meta or {}
    return Hold(
        uri=self.account.holds_uri,
        amount=amount,
        meta=meta,
        description=description
    ).save()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions