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

onlymega's avatar

How to sign up a user to a braintree premium plan (with trial period and NO credit card upfront)?

Is it possible to set a default (braintree) plan to a newly registered user without asking him for a credit card?

After registration user shoud have starter plan with active trial period 30 days.

    Spark::plan('Starter', 'starter')
        ->price(10)
        ->trialDays(30);

    Spark::plan('Premium', 'premium')
        ->price(20);
0 likes
2 replies
Huthayfa's avatar

@onlymega i believe Braintree will not accept the purchase without payment details, what you can do

1- create a trial on your website by using Spark::useBraintree()->noCardUpFront()->trialDays(30); in SparkServiceProvider

2- remove/comment Spark::plan('Starter', 'starter') ...

which will allow users to register without providing a credit card and having a trial of 30 days.

@onlymega can you please share with me how you set up Braintree on Spark? I'm having a trouble when using Braintree instead of Stripe.

Please or to participate in this conversation.