mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 15:21:03 +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())
|
$valid_methods = id(new PhortunePaymentMethodQuery())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withAccountPHIDs(array($account->getPHID()))
|
->withAccountPHIDs(array($account->getPHID()))
|
||||||
|
->withStatuses(
|
||||||
|
array(
|
||||||
|
PhortunePaymentMethod::STATUS_ACTIVE,
|
||||||
|
))
|
||||||
|
->withMerchantPHIDs(array($merchant->getPHID()))
|
||||||
->requireCapabilities(
|
->requireCapabilities(
|
||||||
array(
|
array(
|
||||||
PhabricatorPolicyCapability::CAN_VIEW,
|
PhabricatorPolicyCapability::CAN_VIEW,
|
||||||
|
|
Loading…
Reference in a new issue