commerce
commerce copied to clipboard
Added the ability to set a primary payment source for a customer
COM-211 Add a "primary payment source" for customer
In service of Console, we need a commerce customer to be able to specify one as "primary".
https://craftcms.slack.com/archives/G9VTVR81K/p1660010910962399
I'm not sure what all would need to change to support this, but from Console's side, all I really need is a primaryPaymentSource col in commerce_customers
We'd love to get this in the next Commerce release so we can use it on Console/craftnet
@nfourtythree wondering if it makes sense to be an
Order::makePrimaryPaymentSource: boollike there is amakePrimaryBillingAddress?
Yes will add. Thanks!
Edit: Going add this to a new PR