Open bar-amir opened 5 years ago
There are no immediate plans for subscriptions for PayPal. Leaving this open as a feature request.
Any news for future plans?
@lennartlott nothing to share at the moment sorry.
We are busy working on other improvements to commerce, we welcome a PR on this free plugin.
@lukeholder Is Craft even made for this feature via PayPal? I'm trying to include PayPal subscriptions right now because I need the feature but I'm a little bit lost how to implement it.
The PayPal API has an event to add a subscription https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_create however Craft does not really like to use "offSite" subscriptions.
In order to do this it seems you have to work against Craft and create custom Controllers to send the subscription data and the Gateways subscribe
function then kinda seems to do nothing at all?
At least I don't really see a way to redirect the user correctly in my subscribe function and there doesn't seem to be any logic regarding that case in your functions https://github.com/craftcms/commerce/blob/develop/src/services/Subscriptions.php#L493
So I guess the correct way would be
Subscribtions::createSubscribtion
by myselfIs that intended cause to be honest it feels all the way wrong but I don't know what your intentions with subscriptions were.
Any plans to work with PayPal subscriptions anytime soon? Stripe don't operate in many countries, including mine. Thanks.