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

Ecommerce SUBSCRIPTION handling #400

Closed
maskas opened this Issue Apr 26, 2014 · 5 comments

Comments

Projects
None yet
2 participants
@maskas
Copy link
Member

commented Apr 26, 2014

This is the implementation I have in mind at the moment:

1 Use core function subscriptionPaymentUrl to get payment url. This will result in different url depending on payment method installed

$options = array(
'item' => 'Plan A',
'period' => 1,
'periodType' => 'day', //week, month, year
'amount' => 99,
'currency' => 'USD'
);
$paymentUrl = ipEcommerce()->subscriptionPaymentUrl('$options);
//redirect user to $paymentUrl

2 Catch event on successful subscription signup and supply services:

ipSubscriptionSignup($data) {
if ($data['item'] == 'Plan A') {
//supply services to $data['userId']
}
}

this will allow independent implementation of shopping cart and payment methods.

@eazuka

This comment has been minimized.

Copy link
Contributor

commented Apr 30, 2014

This looks OK to me. As always, a developer can implement own as plugin if not satisfied with default implementation as stated above

@maskas

This comment has been minimized.

Copy link
Member Author

commented May 3, 2014

PayPal subscription payment method plugin https://github.com/impresspages-plugins/PayPalSubscription

works on feature-subscription branch of ImpressPages

@maskas

This comment has been minimized.

Copy link
Member Author

commented May 3, 2014

@maskas

This comment has been minimized.

Copy link
Member Author

commented May 5, 2014

This code has already been merged into master and has been released as 4.0.13 version.

@eazuka

This comment has been minimized.

Copy link
Contributor

commented May 6, 2014

nice, thanks @maskas

@maskas maskas closed this May 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.