Cashier Stripe Adds Support for Managing Customer Tax IDs

News

May 4th, 2021

cashier-stripe-tax-ids-featured.png

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:

1// Return all of the customer's TaxIDs in a collection instance...
2$user->taxIds();
3 
4// Retrieve a specific TaxID from the customer...
5$user->findTaxId('txi_IzcmyhZukd4oKD');
6 
7// Create a new TaxID for the customer...
8$user->createTaxId($type, $value);
9 
10// Delete a TaxID from the customer...
11$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)

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.