Virtuemart order confirmation - joomla

I am using Virtuemart 2.x in Joomla 2.5. I have used a payments gateway plugin which does not allow automatic confirmation after payment has been done.
I have used a custom script for Relay Response. My script is called after the payment is completed. Now I have invoke to default virtuemart functions for order confirmation.
I do not want to update the order status directly with the database via query as it is not the proper approach and it is restricting other plugins(subscription) which is invoked in the default confirmation process.
Please advise.

Related

login via facebook in Xcart based ecommerce website

I have to integrate facebook login in an e-commerce website made in X-cart 4.7.6. There are no add-ons available for this version and I am not able to bypass login validation, I wanted to log user in just by using fb id. Until now , i have been successful in fetching permissions and data from Facebook when user clicks on fb-login button and check that if the particular user is an existing user or a new user. Based on this the data is entered into existing database.
Now I have been trying to set ($allow_login) true and bypass all visible login validation from all files i guess.But yet it doesn't work. Suggest me some ideas or ways to make it work.
You say that there is no ready-made module, but actually it exists: it is included in X-Cart GoldPlus by default, but if you use a "younger" package called X-Cart Gold, you may purchase this addon separately for $99: https://market.x-cart.com/addons/social-login.html

How to configure a magento 1.7.2 multistore with PayPal multi accounts ?

I have a magento 1.7.2 running in multistore mode, how can I set a paypal IPN for each site? (The two sites use different paypal account.)
Looks like I can set the paypal IPN only on the default configuration.
Any tips?
thanks
Are you sure that you are talking about IPN, which means Instant Payent Notification? It is not necessary to configure anything about IPN in Magento.
When sending a transaction to PayPal Magento tells PayPal which URL to use for IPN. This URL is store specific and overwrites any settings done in your PayPal account. So what you have to do ist change PayPal API Crendentials for each store in Magento, which can be done by choosing the current config section.
Create another module with admin configuration of the other emails you want to support
and extend the model
Mage_Paypal_Model_Standard
and override the method
public function getConfig()
to set your logic for switching the config ( paypal email accounts )
Here the answer
http://www.magentocommerce.com/boards/viewthread/79479/
tested and running in my site
thanks

PayPal Money Request automation in mvc 3

I have a button on my page (ASP.NET MVC 3) redirecting to the PayPal service.
I want to automate some process in my system, and I want to allow users to send the Money Request using PayPal.
But, is it possible to pass to the PayPal service (via URL ?) the Recipient's email address, amount and Request payment type (Goods/Services) ?
After the user is logged in, all that fields will be filled in. I'm totally new with that scenario, is it possible ?
You need to create a checkout form in your site and use paypal IPN.
When you create the check out form, you need to store in your database all the values the user gives you. Then send paypal the information you want using the IPN.
The IPN will come back telling you that the transaction was approved or not.
Here is a good tutorial.

Magento PayPal module events

I recently set up some automatic scripts to help me manage incoming orders for a Magento store by using observers and Magento events. My problem is dealing with the question when exactly an order is placed and saved in the system depending on the selected payment type.
For example: if someone simply choses prepayment, the order is saved immediately and the customer is automatically forwarded to a success page - so no problems so far.
If a customer pays via Paypal, the whole situation is completely different. After being redirected to PayPal, logging into the account and confirming the payment, the customer is not redirected to the Magento store. He can click on a link to return there which will also forward him to the success page but surely not everybody will do that and the problem is that the observer event I use only executes code if the user lands on that page. (The event I am working with is "checkout_Onepage_Controller_Success_Action").
Therefore I need to know from where Magento gets the information whether a PayPal payment was successful, has been cancelled or whatever. I looked through some of the PayPal controller files under /app/code/core/Mage/Paypal/controllers/ and the only thing that looked close to a possible solution was the function successAction() in StandardController.php. However, this function also seems to be triggered only when a customer choses to return to the Magento store so it doesn't help me.
Does anybody have some experience with that issue?
I figured out a way to work around the problem:
Appearently there are no events in Magento which correspond with incoming payments on PayPal. A possible solution might be to provide a IPN URL which triggers a script as soon as the payment is confirmed but I managed to redirect the customer to my store so I did not have to do that.
In the profile settings of the PayPal account under "website settings", there is an option called "automatic redirect". If this option is enabled and a URL is entered, the customer will automatically be forwarded to that URL. At first I thought this would not help me because as I said there are multiple web shops involved which all would have their own individual return URL and you can't specify more than one. However, if a return URL is passed over when contacting PayPal, it will override the one that is specified within the profile settings and since the Magento module does that by default, I just had to enter a random URL in the textfield and enable the option, now the customers are redirected back to my shop when they place an order and pay via PayPal.

Joomla user registration plugin

I am interested in customizing the authentication method for a Joomla website.
There is a comprehensive tutorial on how to make a custom authentication plug-in, however a plug-in of that sort customizes the behavior on each log-in.
The behavior I need to implement should occur only once during registration. Is there any way to implement this?
You'll want to create a user plugin that responds to the onBeforeStoreUser event instead of an authentication plugin. The plugin creation process is much the same for user plugins. The onBeforeStoreUser event receives two arguments: the user object and a boolean flag indicating whether or not the user is a new one.
You can look at plugins/user/example.php to see all of the user plugin event handlers.

Resources