Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

azam_zepto's avatar

Laravel cashier for Braintree and Stripe

I am trying to use Laravel cashier for both Braintree and Stripe. I have to use both payment gateways at a time. Can i achieve this with cashier? For subscription i'm using.

Braintree

$user->newSubscription('paypalPlaneName', $paypal_plan_id)->create($nonce);

And same as with Stripe

$user->newSubscription('stripePlaneName', $Stripe_plan_id)->create($stripeToken)

And both payment gateways are using same 'users' and 'subscriptions' tables with their fields. But how can cashier recognize request is for which payment gateway? Is cashier handle this? Can anyone help me with some ideas please?

0 likes
0 replies

Please or to participate in this conversation.