Odoo
First You Need To create a Developer Account in Stripe after that go to Developers Screen.
Inside the“Api Keys” tab you can get the “Publishable Key and Secret Key”which will be used in the Odoo Stripe configuration part later.
Now go to the Settings>Payments
Inside the Payment Method tab you can activate the available payment method that can we available on the payment screen according to the currency.
Now Need to Install the Stripe Integrator Module in odoo.
Now Go Inside the Sale>Configuration>Stripe Configuration
Inside Stripe Configuration Menu Add a Stripe Account Details thatwe have Stored previously we can use those for the stripe payment.
Also, Read Stripe Payment Gateway Integration In Java
We can configure here publishable and secret key and can set the state of this stripe Account.
After that need to click on the Generate your Webhook for receiving the webhook response of payment's.
Note: Only one Stripe Account will be active at once.
Now you are successfully configured the stripe account in Odoo.
Now Go to the Sale and Create a Quotation.
After creating quotation click on send by email button.
When you click on sign and pay quotation you will be redirected to Customer portal.
Here You can sign as this quotation same as previously provided in Odoo. After that you can see there was an Payment intent is being loaded in which various payment options other then card has been seen and you can select any of these payment methods for paying this quotation.
(*above image you can see different payment method options)
These Payment Method are totally configurable you can check it in the configuration part.
You can see the different payment status of the payment as the payment proceed.
(Here Successfull Payment Status has Shown)
Also, Read Payment Integration With Paytm In a Spring Boot Application
That processed payment has been Created inside database and linked with this sale order.
the state of that payment is in Pending state initially and it get's changed according to the incoming payment webhook response status.
When the payment is confirmed the state of the sale order will be changed to Sale Order.
You can check the linked payments inside the Payment Smart Button.
Inside the Payments Form you can see the linked payments details.
And Refund Transaction button is there for refunding this transaction.
It would again create a payment and when webhook response gets the refund has been processed then state of the refund payment was changed to Refund.
For Accounting Process we can create invoice from the Sale Order using the Create Invoice Button then on confirming this invoice the recorded payment was also being linked with this invoice automatically.
And you can also follow the refund invoice process same it would pick the refund linked transaction of the sale order automatically.