Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i add installment for 12 months #602

Closed
webmuneeb opened this issue Dec 19, 2023 · 2 comments
Closed

how can i add installment for 12 months #602

webmuneeb opened this issue Dec 19, 2023 · 2 comments

Comments

@webmuneeb
Copy link

here the is the function which i am using to create subscription and plan.
$response = $provider->addSetupFee($amount)->addProduct($plan_name, $plan_details, 'SERVICE', 'SOFTWARE')
->addMonthlyPlan($plan_name, $plan_name, $amount)
->setReturnAndCancelUrl(url('/client/payment/success/'.$id.'/'.$package_id), url('/client/payment/failed/'.$id))
->setupSubscription($get_user->full_name, $get_user->email, $startDate);
I want to create an installment plan for 12 months or 6 month according to the requirement of the user. what function need to add to installment months.

@srmklive
Copy link
Owner

I think this feature can be added. By default, we are creating recurring plans.

@srmklive
Copy link
Owner

Hi, i have added this feature where you can specify total installments for a subscription.

addMonthlyPlan($plan_name, $plan_name, $amount, 12) // 12 months installment plan
addMonthlyPlan($plan_name, $plan_name, $amount, 6) // 6 months installment plan

buzzclue added a commit to buzzclue/laravel-paypal that referenced this issue Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants