Anyone know of a setting that controls whether a c...
# suitecommerce
l
Anyone know of a setting that controls whether a credit card is marked 'default' automatically when used for checkout? We have hidden the edit/add buttons for credit cards but its making any card used the default for future orders. SuiteCommerce.
a
I don't think so. I understand that to be native behaviour when a sales order is created in Commerce API. The same way that using a shipping address in SC/SCA marks that address as default shipping back on the customer record level.
l
Thank you. I guess I'll have to find workaround via extension or maybe after-the-fact in ERP, as this behavior is less than ideal.
a
@LMG Agreed. That is what I have done in the past to mitigate with shipping address issue: 1. add a custom field to the address as "Actual Default Shipping" (checkbox) 2. create a UE script when the customer record changes, iterate address lines, and always check the Default Shipping (native) box back to true when its line value for "Actual Default Shipping" == true I believe there is an existing enhancement request about the shipping address thing. I don't know if we can add custom fields to a Credit Card sublist (maybe due to PCI compliance or other restrictions), so you might need to store that at customer record level as a custentity field. And then log an enhancement request to add fields (of limited type like checkbox only, so it's still natively PCI compliant) to the credit card sublist. Let me know what you come up with.
^ re: address it's up to customer service to make sure the Actual Default Shipping does reflect and continue to maintain the value that is the customer default shipping. In the use cases I've seen this, it's where a B2B customer might be buying something from the web store and paying for it themselves, but shipping directly to the end customer and invoicing them otherwise.
Kind of like a lightweight drop-ship situation where the site might be locked down to an authorized/licensed audience (due to Personlized Catalog Views or otherwise) who is permitted to redistribute (certain) items to the public due to FDA or state compliance regulations.
l
@ANHE Thanks for the input. I was going to use that same idea and store the default card internal id in a custom field and then monitor when default card checkbox didn't match up to that, update the custom field if user changed default in ui. BUT was able to just "live with" current behavior for now.
👍 1