Skip to content

Balanced::Customer Debit method charging incorrect cards #136

@adambarthelson

Description

@adambarthelson

The 'debit' method for Balanced::Customer is charging cards that were previously added to the list of customer's cards, instead of charging the 'active card'.

customer.active_card            # Card 1
newCard = Balanced::Card.new    # Card 2
customer.add_card(newCard)
customer.active_card            # Card 2
customer.debit(amount)  # Charges Card 1 instead of Card 2

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