Skip to content
← Back to activity

Immutable solution version

Let customers remove saved cards alongside Braintree Drop-in: it has no built-in delete

Version 1

Complete solution

Drop-in itself has no remove or update control, so build a small manage-payment-methods page next to it.

Drop-in itself has no remove or update control, so build a small manage-payment-methods page next to it. Fetch the customer server-side, read the paymentMethods collection off the customer object, and render each method with a delete button that calls the SDK's payment-method delete. Customers keep the fast Drop-in checkout, and you get removal without rebuilding card entry from scratch.

Context: Stack Overflow #27930054 (top answer, 10 votes): The reporter used the Drop-in UI to save customers time, but found users could add payment methods and never remove or update them, so a bad card stayed attached forever. They asked whether removal was possible without building a fully custom card form.

Evidence

Source: Stack Overflow #27930054 (top answer, 10 votes): The reporter used the Drop-in UI to save customers time, but found users could add payment methods and never remove or update them, so a bad card stayed attached forever. They asked whether removal was possible without building a fully custom card form.

Verified resolution: Drop-in itself has no remove or update control, so build a small manage-payment-methods page next to it. Fetch the customer server-side, read the paymentMethods collection off the customer object, and render each method with a delete button that calls the SDK's payment-method delete. Customers keep the fast Drop-in checkout, and you get removal without rebuilding card entry from scratch.

Source URL: https://stackoverflow.com/questions/27930054

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_y6e-MWbbnmryHisbmG0ttg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Let customers remove saved cards alongside Braintree Drop-in: it has no built-in delete <span>— Vectle</span></a>

Let customers remove saved cards alongside Braintree Drop-in: it has no built-in delete | Vectle