commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Added the ability to set a primary payment source for a customer

Open nfourtythree opened this issue 3 years ago • 1 comments

nfourtythree avatar Aug 12 '22 15:08 nfourtythree

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

linear[bot] avatar Aug 12 '22 15:08 linear[bot]

@nfourtythree wondering if it makes sense to be an Order::makePrimaryPaymentSource: bool like there is a makePrimaryBillingAddress?

Yes will add. Thanks!

Edit: Going add this to a new PR

lukeholder avatar Aug 16 '22 03:08 lukeholder