The payment methods of my country are not listed in OpenCart Extensions.I want to create one from scratch.Is it possible to write one or I have to use ones comes with OpenCart extensions?
I believe you should be able to implement and use your own "payment method" since OpenCart is open sourced. Just need to spend some time figuring out how it connects.
Well regarding your own "payment method", normally you have to do it through a Gateway. PAYPAL is one of the easiest gateway to be implemented in PHP. Just have a try with their API and some of the sample codes.
There are a lot of other options though. This may be helpful.
Related
so I need to ask a question, I need to setup a simple paypal express checkout system, that one can allow users to change currencies, and two can then update the page with the updated currencies.
Then I need a way for me to get the order information. As I will be selling website templates so I need a way for me to get their email address, so I can then email them with the link to the template file download.
So my question is what data do I get if I set up an express checkout system. And what code do I need, Do i need to create a database to get the returned data back from paypal? Or do I just get an email or can i see that when i log into my paypal account and check orders and see their details that way, but the main important detail i need is their email address?
Can I also say that this is the first time I have looked into express shopping carts. So I am a complete novice in this field, So I will struggle with the coding aspect. But I think it is the route I need to go down.
Also I want to make it all in php as well. But also I don't want to use ready made systems. I just need the back-end code so that I can then just implement it into my current design. Not sure if paypal give you the code when you click the express shopping cart option in All tool section. I did notice though it redirects to a page that lists many partner sites. I couldn't find anywhere for any implementation advice or tips or code.
EDIT: Also I know I will also need to use either IPN or PDT but the documentation I read is highly confusing and just is making me unsure if I can even set a system up. I also read that you should implement both systems, but I also read that that had a risk of doing the payment twice. So yeah i am kinda a bit unsure how to even go about implementing a system I need.
Thanks in advance.
I need to integrate PayU payment gateway (via Omnipay) into one of my ExpressionEngine2 (2.8.1) websites thus I need to write this gateway for the shopping cart (Expresso-Store) I am using in my project.
To achieve this, I am looking at the other payment gateways that is already included in the store addon and trying to make sense of what is going on there and trying to follow those examples. Unfortunately there is almost no comments in the existing gateways and I would really like to know what happens in each class rather than 'just following examples'. I see that most of these have pretty much the same structure, although in some gateways there is a class or function missing, or the one gateway handles things different to another gateway.
I also know that I need to write an extension to install this new gateway as the copy/paste method is a no no when you need to update your gateway.
My main concern is what happens in the getData() and sendData() functions of the PurchaseRequest class and how do I know which classes/functions to include?
Any help will do. Thanks in advance
This question is probably better suited to the ExpressionEngine stack exchange site, but anyways...
The Omnipay readme has some basic instructions to create a new gateway. A complete example is probably a little beyond a SO answer, but basically the getData() method formats the request to send to the gateway, and the sendData() sends it.
As for integrating with Store/EE, you can look at this Beanstream gateway to see how to create a new extension containing the extra gateway.
I'm trying to make a shipping module for Itella SmartPOST and Post24, it's unlikely you've heard of them as they only exist in Estonia, Finland and maybe somewhere else. Here they give a short overview on how to communicate with their servers in English http://www.smartpost.ee/automaatne-vaikepaki-andmete-saatmine, I guess for a experienced developer it should be enough, but I could use more directions, I really don't want to pay money for the shipping module if I can make it myself.
I've read through couple of tutorials on how to make shipping modules, but none of them cover how to communicate with external sources.
So I guess I need to build something that at the checkout would give the costumer option to choose wich parcel terminal they want the package to come and then send that information with other mandatory fields(http://eteenindus.smartpost.ee/data/_tables.db.html#orders) to Itella and then get some info back from them. I hope I understood this correctly...
So how would I go about doing this? I pretty much understand how to make custom shipping methods, but the part of sending information between mine and their database gets confusing.
Their documentation says they can accept a JSON Post or an XML post request, which means you would have to generate these requests and send them from Magento.
I suggest looking into tutorials on creating API based shipment and payment extensions.
Here is a tutorial for an API based payment extension. You can adapt the sending/receiving principles to your shipment extension:
http://www.excellencemagentoblog.com/magento-create-custom-payment-method-api-based
got a question and I hope this is right place to ask :).. don’t quite understand how payment works in magento.
client goes to checkout and lets say wants to pay as a guest, so provides address etc. and finally gets to payment methods. Then I want clients to pay thru credit card. Already have module installed for gateway (bank?) of my choice. At that point I would expect users to be redirected to 3rd party page (bank hosted) where they giving all the details, only after being returned to my magento site with appropriate message.
In magento however it seems like they need to provide cc numbers and details on magento checkout page. I don’t understand if I (or the payment module I installed) need to transfer then all the credit card details to bank? I would have to have checkout page on ssl connection and static ip right?
The thing is I want to avoid touching CC numbers at any point and would love to have it done by a bank page. I like the idea of magento interface all the way without redirecting to another page though, the only problem is not sure if would be able to set it all up properly.
If anyone could explain to me possible options, what is the common way to do it and how the whole process works that would be very much appreciated.
I did my research and looked all over google and various forums still need someones help though. Please let me know if some parts of my question are not quite clear, will try to better explain if necessary.
Had to develop a payment module for DPS in NZ some time back. How this works is, you go to pay on the site and the payment module php code runs that sends off the details to an acquiring institutions payment website who process the transaction for you with the bank. In my case as I recall it was DPS NZ via some soap calls. The Soap calls contained details such as the total cost, the currency, the merchant number to identify who you are paying. The acquiring institution (DPS in this case) then takes your credit card number and expiry date and do the processing. Then, again via some soap calls back to your own magento website you get redirected back with the error code - success, etc.
DPS use soap I think, but other payment websites may use other protocols to work. The other possibility is that your credit card acquiring page could be hosted on your website and you accept the credit card numbers and do all the processing within magento to the acquirer.
In short, the process is controlled by the payment module itself. If you want to see more detail, have a look at the payment module tutorials that are available and also the comments in the magento forums. You can also look at the paypal module code.
The default architecture that Magento payment modules use involves the customer interfacing with the module and the module talking to your payment gateway behind the scenes.
Basically the customer inputs all his data (CC and all) and hits the payment button at which point certain functions are run in the chosen payment module. What these functions do is entirely up to how the payment gateway works. if the gateway talks via XML they send/receive XML, if it needs SOAP then they use SOAP and so on and so forth. This in fact is the gist of building a new payment module. Open an existing one, check out which functions are called, get rid of the code in there and substitute with your own that will talk to your particular bank/gateway.
Of course some gateways have an alternate way of operating where you send the customer to their pages, he gives them his CC data and he is promptly returned to your site. This way you don't need to worry about handling credit card data, but unfortunately the process of implementing this in Magento is somewhat more involved.
If you need to use a certain gateway then you should first check whether a payment module for it already exists. if not you can download a similar payment module, dissect it and modify it to run your code where appropriate.
I'm planning to create a survey form in Joomla(1.5) that will have a lot of custom fields (name,address, email, date of birth and more...). Now I want to get your opinion on the best approach to do it. Is there a plugin to easily do that? Or I should really code it from scratch?
Also I want add and integrate some payment gateway that will handle payment (It could be paypal and creditcard). What can be my options for that?
Thanks!
Survey Manager might be the way to go for you.
Also there are a host of payment gateway modules you can integrate in your website. You can find them at joomla extension library.