Skip to content

BraintreePlugin: Allow customer to specify whether to save card #12

@michaelbromley

Description

@michaelbromley

Is your feature request related to a problem? Please describe.
When using the BraintreePlugin with the storeCustomersInBraintree option set to true, the payment handler will automatically persist any card data to the Braintree vault upon successful CC payment.

We should support an option that allows the customer to opt-out of this behaviour.

Describe the solution you'd like
In the metadata argument of the addPaymentToOrder handler, we can add support for a storeCardInVault: boolean; property which can be used to control this. For reasons of backward-compatibility it should default to true where we have a braintree customerId already stored for that customer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpayments-pluginRelated to the payments-plugin package
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions