exchange_routes

class gratipay.models.participant.exchange_routes.ExchangeRoutes[source]

Participants have payment routes to get money into and out of Gratipay. This mixin supplies API to the Participant object for working with relevant records in the exchange_routes table.

get_paypal_error()[source]

Return the error associated with the participant’s PayPal account, or None.

get_credit_card_error()[source]

Return the error associated with the participant’s credit card, or None.

has_payout_route

A boolean computed property, whether the participant has a known-working payout route.

get_payout_routes(good_only=False, cursor=None)[source]

Return a list of payout routes. If good_only evaluates to True then only known-working payout routes are included.

get_braintree_account()[source]

Fetch or create a braintree account for this participant.

get_braintree_token()[source]

Return the braintree token for this participant.

credit_card_expiring()[source]

Return a boolean, whether the participant’s credit card is set to expire soon.

set_paypal_address(address, cursor=None)[source]

Given an email address as a string, set it as the participant’s PayPal address.