I want to build a custom payment acquirer module in odoo 13 , The idea is whenever the customer click on pay , a redirect url is generated from the backend for that particular invoice then I redirect the user to that url , when payment complete the acquirer site then send a GET request to my website , in that get request I have the orderID then I can verify or not if transaction is complete . Through many research and inspection of odoo module like paypal , nelo ect... I wasn't able to create it so Im wondering what is supposed to be done
this is the code of What I started https://github.com/mama00/moncash_odoo
Related
I have the revolut merchant API , I have gone through there documentation upon making different API calls, like retrieving all customers , retrieving payment details of a customer etc.
Here is the documentation link as well Retrieve all customer's payment methods
I used postman to first give it a try
It just returns an empty array of payment details
I am interested in fetching last 4 digits of car to show them in woocommerce emails
Any help is appreciated , I can provide the API key as well if it helps meeting our requirements.
Moreover, this should be relevant to each order so we can display 4 digits of payment card for that particular order in woocommerce order emails
Thanks
Here is the image of the postman request made
image of postman API request returning an empty array
And here is the website checkout page which might also be helpful
website checkout page link
I have build a Sales Channel for my e-commerce website. The Sales Channel loads shopify products from Shopify stores to my e-commerce website.
Now I want to implement the Buy functionality: the user selects a product in my e-commerce website. I would create a DraftOrder and send the draft order to Shopify, shopify would respond with am invoice-url.
Now I can redirect the user to this invoice-url to make the payment directly through Shopify... but I want to redirect the user back to my e-commerce website, once the payment is completed.
Is it possible to implement this redirect functionality?
Note: I had asked a similar question trying to achieve the same goal using Checkout API.
You cannot do too much on the order status page - the page customer gets in once an order is placed and paid. You can add custom scripts on the shop's checkout settings page: Add Additional Scripts. For example, you can show a message with a link back to your sales channel.
If you're on Shopify Plus you can customize checkout.liquid directly.
I am new to prestashop and just have a know-how about it. I want to develop a payment method that redirects to the client's payment gateway.
My client already has a payment method plugin for prestashop which shows embedded credit card form and calls APIs with these data to process the payment when order is placed.
I also want to place the order after the payment gateway redirects to my prestashop success URL else I have to retain the cart.
You need to create a module for your particular payment method. Here you can find documentation how to implement it.
I'm using Paypal rest api to make payment
the workflow is:
Create payment
Redirect to approval Url
User approved (return back to my site)
Execute payment
But there's one thing that I don't want users re-filling shipping address again because it was filled in my website.
So I change the workflow to:
Create web profile (set no shipping field)
Get web profile ID
Create payment with experienceProfileId given
Redirect to approval Url
User approved (return back to my site)
Execute payment
But I found this will create a lots WebProfile every time user request payment.
I think it is crazy to do:
create and delete it later again and again
attempt listing WebProfiles and check which is the one I want to use every time while creating payment
store experienceProfileId as a constant
What is the best practice for handling WebProfile or does there any solution just hiding shipping address while user approving payments?
Maybe this is not the answer regarding this "WebProfile". As a fact, I dont know what exactly "WebProfile" does or is.
I worked on the same Workflow these days. As you wrote I needed to predefine some address. For me it was obvious, that I have to do the database-stuff on my Website. Then I exactly define the order, shipping_address, etc. and send the users to Paypal.
If you predefine the new ShippingAddress() to your ´new ItemList()´ by
$itemlist->setShippingAddress($shippingaddress) the user cannot change it within the Process.
http://i.imgur.com/nAg8jxU.png
Maybe this helps you a little.
I'm building a small cart app in PHP which needs to have PayPal integrated into it for payments.
Checking the PP developer site you get 100 different APIs for every kind of job, however there is no clear answer as to which is the GENERIC API I should use to accept payments in the classic manner most webshops implement:
1. Client clicks pay
2. Redirected to PP site where he is asked to login.
3. After login he is presented with confirmation, he clicks OK.
4. Browser redirects back to my cart which presents user with a "Thank you" message, order code etc, while in the background a request is sent to my cart with the transaction credentials (transaction id, success status etc).
By the way, I'm not looking for Express Checkout since in this case PP provides the shipping info.
You could use the DoDirectPayment API to process payments. This will keep the buyer on your site, and they will enter in the information on your site. Then you will pass the details over to PayPal through an API call, and PayPal will then send the response back to you if the payment is approved.
If you are not wanting to use the DoDirectPayment API and are wanting to direct the buyer over to PayPal's pages to complete the payment but do not want to use Express Checkout, you could use PayPal Payments Adv/Payflow.
Express Checkout is what you want. Shipping info can be set on your end or Paypal end. It makes no difference.