MassimoGnocchi's avatar

Laravel 6.0 and Cashier with Braintree

Hi everyone, I am well aware that Cashier's support for Braintree has been abandoned and I will deal with it manually when I got the time. However, in Laravel 5.8, Cashier's functions like updateCard(), swap(), newSubscription() and cancel() still work with Braintree. Question is, will they still be working with Braintree if I upgrade to Laravel 6.0?

All the best, Massimo from Italy

0 likes
6 replies
Sti3bas's avatar

Just clone the repository, update the dependencies to support Laravel 6 and run PHPUnit tests. If it passes, then it means that it should work with Laravel 6.

petarvasilev's avatar

I tried that but I get this:

  1. Laravel\Cashier\Tests\CashierTest::test_subscriptions_can_be_created Illuminate\Database\QueryException: could not find driver (SQL: create table "users" ("id" integer not null primary key autoincrement, "email" varchar not null, "name" varchar not null, "braintree_id" varchar null, "paypal_email" varchar null, "card_brand" varchar null, "card_last_four" varchar null, "created_at" datetime null, "updated_at" datetime null))

plus various other errors, any idea what I am doing wrong?

MassimoGnocchi's avatar

Hi! In the end, I had to write my own implementation using Braintree SDK. After that, I could finally update Laravel to version 6 and everything is working fine now. In case you wish to do that as well, I suggest you to take a look at the old laravel/cashier-braintree library (https://github.com/laravel/cashier-braintree) as a starting point.

All the best, Massimo.

tsangaris's avatar

This is very unfortunate as Stripe only supports 34 countries worldwide.

1 like

Please or to participate in this conversation.