How to use the 2Checkout payment integration with Odoo. I have gone through their documentation but i have no idea how to develop the module in odoo to integrate 2checkout.Is there any guideline for that. If there is any examples that would be helpful to me.
There is not a guideline for creating custom payment processors, however you can take ones that already exist and replace the processors logic with logic for 2Checkout.
The easiest one is the Ogone module: https://github.com/odoo/odoo/tree/8.0/addons/payment_ogone
In fact, you'll find the Odoo developers doing the same thing. I occasionally saw an Ogone reference in other payment modules accidentally left in.
Basic Requirement for any payment gateway:
1) Go through the document, where you can find what data are required to
send in request and what response you will get.
2) Generate the request and send it from your module, you will get
response.
3) Now, as in odoo every response from the payment gateway is sent to the
web so to handle you need to design some web template.
4) And in the web controller you can do all the process that you need to do for the order or invoice.
You can do this with the default payment gateway like paypal or Bukaroo available in Odoo.
Hope it will help you.
Related
I'm a fairly new web developer and I have an ecommerce website that integrates EasyPost to create and print shipping labels.
EasyPost has an API. Also, in each shipping label, I see a JavaScript object (I think) that displays buyer_address... "email": "example#gmail.com",, which tells me that the email information is there.
My question is somewhat general in scope: What steps would I need to take to go about creating this automation? The website is built in Webflow, so I don't really have a "codebase" or "repository" to store whatever code is needed to build the automation.
Since the buyer email is making it into EasyPost with integrations already in place, I feel that I could create a simple program that emails the tracking number to the buyer email every time a label is generated, or perhaps when package is shipped, without the program needing to interact with Webflow or other integrations.
I attempted using Zapier, as well as Make.com. Neither worked, and OrderDesk doesn't have a way to send tracking number emails.
It looks like Webflow has some kind of support for Webhooks (https://webflow.com/feature/create-webhooks-from-project-settings). EasyPost offers webhooks for free as an add-on service. Basically, with webhooks, EasyPost would send tracking events to Webflow proactively, but Webflow (or you) would need to manage the logic for what to do with those tracking events after they are delivered.
EasyPost Webhook Guide
I'm unaware of any off the shelf products that could do this for you without writing any code. We have a guide that details how you might accomplish this with Ruby (you could then follow this as an example for any other language): https://www.easypost.com/email-tracking-tutorial
A few suggestions:
Integrate something into Webflow if possible (I'm unfamiliar with the platform so couldn't say).
Build a simple script that runs on a schedule (cronjob) that retrieves your trackers from EasyPost and sends an email to customers if they have not yet received one. To your point, this approach wouldn't require interacting with Webflow at all and could be done with some local code running on a server and just your EasyPost API key.
I've created a simple UI for EasyPost: https://github.com/Justintime50/easypost-tools-ui, it could be interesting to add this particular use-case as a feature to that project. If you're interested, feel free to open an issue on GitHub for the repo listed here and I'd consider it.
You'd use easypost's API webhooks, to detect when shipment tracking information is provided, or package information is updated.
https://www.easypost.com/docs/api#trackers
It looks like it has a lot of states, so you can keep the client updated regarding the package status from the moment the tracking # is assigned;
EZ1000000001 pre_transit
EZ2000000002 in_transit
EZ3000000003 out_for_delivery
EZ4000000004 delivered
EZ5000000005 return_to_sender
EZ6000000006 failure
EZ7000000007 unknown
You can install webhooks from these docs.
To send the email, you can use an automation service e.g. Make to capture those webhook events, and then compose and send an email to that customer. I like MailJet for that purpose, because it has excellent template support and you can send from your own company domain. But there are many email-sending options.
A bigger challenge, maybe, is getting the email address to send to. I didn't spot it glancing through the Trackers or Shipments data structures, and I am primarily seeing physical address info.
If EasyPost is not tracking the customer's email with the shipment, you may have some challenge in that you'd need to capture the client info through Webflow's order webhooks, and then associate that with EasyPost's shipmentid, and store those in a reference table.
Many automation services offer database-like functionality for this purpose, or you could use e.g. google sheets ( columns webflow OrderID, easypost ShipmentID, customer Email ) or airtable for that purpose.
But you'd have to look into the Easypost integration as well, and you may need to make that integration manual so that you can acquire all 3 of those pieces of information at the same point in your business data flow.
I've integrated PayPal's Instant Payment Notification system/kit with my site. It's been working well for years.
I'd like to add another method, as PayPal has been concerning me with their industry-leading fees and censorship efforts. I'm not saying others are much better, but I want to at least add a second-string option.
Can any of you recommend an alternative that is as easy / similar to PayPal's IPN ?
All thoughts welcome, and thanks.
I use Paypal IPN as my default payment for my store. I also developed an alternative at FastPring, Bitpay, CoinPayments, and Paddle. Bitpay and CoinPayments are for processing payments in cryptos. CoinPayments uses an IPN-like system. Paddle is for processing cards like Paypal. It also uses an IPN-like system thru webhooks. Fastspring uses webhooks. I created a single file that processed the webhooks I need to process. Note that Stripe also uses Webhooks.
I need to create a solution for altering the checkout process.
Better said, I need to add some functionality to it with a remote app (I am not sure if this is the right way to do it).
Mainly, what is needed represents a process that calls an external API, using a private API key from a delivery company, that registers a pick-up from the buyers house and sends the product to our headquarters.The process should be started when the user completes the entire checkout system from shopify, after payment.
After that, some AWB should be returned to the users checkout page, or some response regarding the creation of the pick up.
My question is, let's say, using some language like javascript with node and Koa or express, how one can achieve that? I can't find any tutorials or something that would help me do this.
I want to make the custom payement gateway in the shopify so which programming language would be suitable for making plugin and also give some hint how to proceed in it.
For making plugin for payement gateway do we have to use public app or private app???
Since Shopify apps integrate via REST any app language that you are comfortable with will work. Shopify officially supports Ruby, Python and Node
However as #david-lazar writes you cannot directly integrate a gateway. Shopify does support dozens of payment processors so you really should look at all of those to see if one meets your needs.
If you really need your own payment processor you'll have to either
implement a Sales Channel
or intercept the checkout process and dump the cart and customer info to a custom app.
This will let you integrate your payment gateway but you'll also have to write the whole checkout. The Sales Channel app would have to go through PCI compliance certification (unless you want to use it with Stripe) and your liability insurance would probably require your custom checkout to go through it as well.
A Sales Channel would require the whole theme to be adjusted. You have to adjust: the add to cart; cart display; and checkout. The custom app would require all your checkout links to be adjusted so that the checkout process ends up at your app instead of at the standard checkout.
It's all quite doable but unless you have a compelling business reason (e.g. scheduled delivery or your own custom discount scheme) then you are way ahead finding one of the supported processors that will work with your business.
You cannot make a custom gateway for Shopify. Those days are long gone.
We wanted to make the payment gateway in which payments would be done through the bitcoin through the concept of lightning network so would it be possible to do through this???
I want to add my custom shipping method using Bigcommerce API. I don't want to use any of the pre-existing methods such as flat rate, free shipping, FedEx, Australia post etc.
I have gone through their API, especially shipping resources, but it doesn't seem any methods are available to add our own shipping method.
Shipping resource API documentation
https://developer.bigcommerce.com/api/stores/v2/shipping/methods#get-shipping-method
I don't even know do we need special permission fro Bigcommerce guys to add shipping method.
Please help if anybody has developed or trying to develop similar thing.
Thanks.
I need to integrate third party shipping calculator to bigcommerce site. First thing is that bigcommerce is a hosted solution which means that we don't have direct access to their code via ftp. So we can't modify the code to add our shipping calculator.
2nd thing is that they do not allow any unsupported thirdy party gateways or softwares.
Read this
https://support.bigcommerce.com/?page=support_policy
They say that:
Unsupported Gateways and Third Party Software
We are not able to support any third party gateways or third party software we do not integrate with. We are unable to provide any "How to use", modify or extend the use of any third party software outside of any documentation we've provided.
Also note that bigcommerce API is not for this purpose. It comes in use when someone wants to pull data from bigcommerce shop via its api. You are looking at this in reverse direction which is wrong.