Is drupal provided Subscription Management functionality for user? - php

I am new in drupal and i have no idea about Subscription Management
of users.
Our client want a functionality like.
1) Subscription form for the Non-subscribe USER
Non-subscribe :-
Access Site, Don't have access to open link which is shared by
subscribe user
Subscribe User:-
Take subscription,Mention reson to unscribe subscription plan,
Informed via SMS/Mail once the content is close to the end of its
access time.
(2) Subscription Management
Manage Subscription Request through Form:
Possibility to choose monthly payment or one-time payment for one year with a discount of 10%
Creation of an internal file with Credit Cards EOV (End Of Validity) and CB for reminders
add extra fields.
possibility to pay via Paypal or similar. Alert sent directly to the subscriber a month before on his e-mail address
i tried two module newsletter and second is subscriptions
Links of module
newsletter module
subscriptions Module
but that can not provided functionality that i mentioned above, So anyone know about it how Manage Subscription Request through Form or Subscription form for the Non-subscribe USER.
Does anyone know about manage subscription request is done?

I'm not aware of an out-of-the box solution/module to do what you're asking, but it should be relitivaly straight froward with a combination of modules.
You can control access using core roles. Define the roles and access you want them to have.
You could assign and remove roles using the Rules module.
Adding custom fields to nodes is straight forward and can be achived in the UI by going to Structure > Content Types > {Your content type} > manage fields.
As for ecom, and a turnkey solution, you could look at Commerce License, or Commerce subscription products

Related

How to get payment amount from Stripe token? (in PHP)

I've got a site that offer users 3 different subscription plans (with 3 different prices). So there's a sign up page with 3 different subscribe buttons, each of which opens Stripe Checkout for the appropriate amount for each plan (I'm using the standard Stripe simple Checkout integration https://stripe.com/docs/checkout#integration-simple ) .
On my server I know which plan a user has subscribed to because I've got a hidden field in each Stripe Checkout button form with the plan name. The problem is how to stop someone editing the form (e.g. using developer tools in their browser) and changing the hidden plan field so they get e.g. the Gold plan at the Basic plan price.
The obvious solution seemed to be to check the amount associated with the stripeToken that Stripe returns (i.e. the same as the data-amount field in the Stripe Checkout form), before calling the Stripe API to actually subscribe the user. However, I'm not sure how to get the amount from Stripe using just the token and can't find an obvious API call for this.
Or is there some better way of handling multiple subscription plan options while ensuring a user can't somehow get away with paying a lesser amount?
Thanks.

Auto FIll Virtual Wallet for Users Wordpress

I am trying to integrate Virtual Wallet system for payments into a WordPress Based E-Commerce Website
I am using this plugin for this -
Link To Plugin
Working Process Of This Plugin
In this plugin From Admin Dashboard Admin can select the user from all users on the website and assigns a particular money in the wallet of the user then user can buy from the website within that money
My Problem and Requirement
But for this I need to fill the amount in user's wallet manually . I want that user transfer me money on paypal and it will be automatically added to his wallet
I was unable to find proper information regarding . Is this possible to be done in wordpress and Is there any plugin available to do so
I would recommend using PayPal IPN for that. Every time a transaction hits your PayPal account their server will POST data about the transaction to a URL on your server. That URL can receive the data and update your system accordingly. It happens in real-time, too.
You can get up and running with IPN very quickly using the PayPal IPN for WordPress plugin. Then you could use the hooks provided by the IPN plugin to do whatever you want to do with the PayPal payment data when it receives it.
For example, the paypal_ipn_for_wordpress_payment_status_completed hook would be triggered any time a successful payment occurs, so you could use that within your own plugin or your theme's functions.php file to automatically update the wallet balance of the user based on the data provided in the IPN.

eCommerce membership subscription after payment

I am creating a site in which a user must pay in order to access certain parts of the site. I understand how to make certain pages available to certain users, but I would like to know how I can automatically give them access once their payment has been processed.
ex.) A user sets up a account, during the process it will ask for credit card or other payment info(I would like it to be through Paypal). Once the payment has been processed it will add the user to my database and then they can access the site.
I am new to eCommerce and would like to know what tools I can use so that when a purchase on my site has been processed, I allow the user to access the website.
note: My site is being built with PHP.
I would recommend using Instant Payment Notification (IPN) for that.
It's basically a script that sits on your server listening for data. Any time your PayPal account has a transaction that takes place it will automatically push data to your listener script in real-time. Within that script you can update your database, send out email notifications, etc.
Here's a PHP template for IPN that I developed years ago. It's a little rudimentary, but still very useful and will get you up-and-running with IPN within minutes. Then all you would need to do is make some basic additions to update your users table accordingly, but the template comes with a nice database class that makes that very simple as well (assuming you install the IPN template solution to the same DB as your users table.)

Moodle Plugin to register new users using Paypal?

I'm trying to implement a plugin in Moodle where new users are registered using Paypal.
And the registration for the new users will require paypal payment to complete registration.
If anybody can help me with any example, code, plugin, or any link, I'll be grateful.
PayPal enrollment is included as part of Moodle's core code, so you just need to enable and then configure it. Documentation is here. This covers enrollment in a specific course, rather than new user signup as typically people want to charge different amounts for different courses, rather than a flat rate for access to everything.
There is no existing PayPal authentication plugin to make it so that a user must pay to register on the site, but if you want to make one the developer docs are here.

Custom VirtueMart Options

I'm working on a project that ties into an API and uses virtuemart. Basically a user can buy time for a phone card. the few things I need help with are:
A) can/how can I create a custom php function once the user signs up. For instance, the user adds Items to the cart and proceeds to checkout. once the user clicks checkout they need to create an account, after they create an account is there an area in this process that allows for a custom function so that I can tie the creation of the account to an API?
B) same as above but after checkout. After the checkout goes through, how can I make it so the new values are sent to the API? Is there an area in the files that allow for custom functions here.
C) Lastly is it possible to add more options the the virtuemart customer account maintnance screen. I want an option that will tie into the API and show them exactly how much time the have left for their phone card. This information will be provided by the api.
All of these things can be achieved with a System Plugin. You would simply look for the right url, get any information from the result screen with regex, call your API and insert any changes back into the screen.
I'm not specifically aware of any VM functions for this, but as VM is in flux with Version 2 getting closer, it may not be a good time for any such investment in any case.

Categories