News

Cashier Stripe Adds Support for Managing Customer Tax IDs

Published
Cashier Stripe Adds Support for Managing Customer Tax IDs image

Cashier Stripe v12.13 ships with some helpful new methods for managing customer Tax ID's for stripe customers:

These methods are useful for storing tax ID information in Stripe alongside other user account information found in Stripe. Here's a text version of the code examples in pull request #1137 that you can start using in Cashier Stripe to manage tax IDs:

// Return all of the customer's TaxIDs in a collection instance...
$user->taxIds();
 
// Retrieve a specific TaxID from the customer...
$user->findTaxId('txi_IzcmyhZukd4oKD');
 
// Create a new TaxID for the customer...
$user->createTaxId($type, $value);
 
// Delete a TaxID from the customer...
$user->deleteTaxId('txi_IzcmyhZukd4oKD');

To get started with Cashier Stripe, check out the Laravel billing documentation. The Stripe API documentation for Customer Tax IDs is another helpful resource if you'd like to learn more about the APIs Cashier uses to manage customer data.

v12.13.0

Added

  • Add methods for managing TaxIDs (#1137)

Fixed

  • Fix receipt comments (#1131)
Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article