mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Don't prompt users to autopay with disabled cards
Summary: Also exclude non-merchant cards. Test Plan: Loaded subscription, saw better options in dropdown. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D11943
This commit is contained in:
parent
c56ac11bd2
commit
d866af32e0
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ final class PhortuneSubscriptionEditController extends PhortuneController {
|
|||
$valid_methods = id(new PhortunePaymentMethodQuery())
|
||||
->setViewer($viewer)
|
||||
->withAccountPHIDs(array($account->getPHID()))
|
||||
->withStatuses(
|
||||
array(
|
||||
PhortunePaymentMethod::STATUS_ACTIVE,
|
||||
))
|
||||
->withMerchantPHIDs(array($merchant->getPHID()))
|
||||
->requireCapabilities(
|
||||
array(
|
||||
PhabricatorPolicyCapability::CAN_VIEW,
|
||||
|
|
Loading…
Reference in a new issue