Releases: srmklive/laravel-paypal
Releases · srmklive/laravel-paypal
Cache access token
What's Changed
- Caching
access_token
/app_id
Issue by @ericdowell in #517
New Contributors
- @ericdowell made their first contribution in #517
Full Changelog: 3.0.15...3.0.16
Fix error response parsing
Full Changelog: 3.0.14...3.0.15
Add feature to get client token
Full Changelog: 3.0.13...3.0.14
Support Laravel 9
Support Laravel 9
This release adds support for use on Laravel 9.
Custom method to set return & cancel URLs
3.0.12 PHPUnit & CI fixes.
Fixes for Subscription Creation
This release implements the following for the Subscription helpers methods:
- Fix subscription creation without a trial period.
- Add method to create recurring billing with custom intervals.
Implement custom methods for creating subscriptions.
This release implements custom methods to create recurring subscriptions:
- Daily
- Weekly
- Monthly
- Yearly
Following are the code snippets through which the above can be accomplished:
Create Recurring Daily Subscription
$response = $provider->addProduct('Demo Product', 'Demo Product', 'SERVICE', 'SOFTWARE')
->addSubscriptionTrialPricing('DAY', 7)
->addDailyPlan('Demo Plan', 'Demo Plan', 1.50)
->setupSubscription('John Doe', 'john@example.com', '2021-12-10') ;
Create Recurring Weekly Subscription
$response = $provider->addProduct('Demo Product', 'Demo Product', 'SERVICE', 'SOFTWARE')
->addSubscriptionTrialPricing('DAY', 7)
->addWeeklyPlan('Demo Plan', 'Demo Plan', 30)
->setupSubscription('John Doe', 'john@example.com', '2021-12-10') ;
Create Recurring Monthly Subscription
$response = $provider->addProduct('Demo Product', 'Demo Product', 'SERVICE', 'SOFTWARE')
->addSubscriptionTrialPricing('DAY', 7)
->addMonthlyPlan('Demo Plan', 'Demo Plan', 100)
->setupSubscription('John Doe', 'john@example.com', '2021-12-10') ;
Create Recurring Annual Subscription
$response = $provider->addProduct('Demo Product', 'Demo Product', 'SERVICE', 'SOFTWARE')
->addSubscriptionTrialPricing('DAY', 7)
->addAnnualPlan('Demo Plan', 'Demo Plan', 600)
->setupSubscription('John Doe', 'john@example.com', '2021-12-10') ;
Create Subscription by Existing Product & Billing Plan
$response = $this->client->addProductById('PROD-XYAB12ABSB7868434')
->addBillingPlanById('P-5ML4271244454362WXNWU5NQ')
->setupSubscription('John Doe', 'john@example.com', $start_date);
Implement Additional APIs
Implemented the following:
- Custom filters for Invoices Search.
- Implementation of Identity API.
- Implementation of Partner Referral API.
- Implementation of Web Profiles API.
- Implementation of Payouts API.
- Update credentials verification workflow.
- Implement custom methods to recurring subscriptions.
Implement Payouts API
Implemented the following APIs: