Payment from PayPal in purchase order in Odoo 12 - paypal

I have a condition where I have to make payment through PayPal from purchase order. By default, PayPal payment is only available for sale quotation now. Is this possible to make payment through PayPal from purchase order?

Related

PayPal recurring subscriptions with credit card payments

In my website I have integrated PayPal subscription. There client redirects to paypal site and do the payments and return to my site, it is fine. But my client wants to accept credit card payments, in current implementation users need to create paypal account in order to do credit card payments. As per my finding on the web we can do recurring credit card payments in following ways.
Collect credit card detail and store on paypal side and perform transaction when we need using a token. But this method supports only in UK and US
https://developer.paypal.com/docs/integration/direct/rest_api_payment_country_currency_support/#direct-credit-card-payments
Collect credit card details and create recurring payment profiles via API. But this method possible only in US,UK,Canada only
We can do credit cards payments on PayPal site(without paypal account) with their Enhanced Recurring Payment service. It is not free($19.99/month)
My client is in France, So in my case only possible option is 3. Am I correct? Is there any other way to do it.
Unfortunately, none of the option is available for France Merchants to process direct credit card payments.
The option 3 Enhanced Recurring Payment(ERP) is available for US,UK,AU and CA.
No, for France Merchants there is no way to accept direct credit card payments, only way is you can turn on "account optional" feature in paypal account and increase chances that buyer could pay with credit card along with PayPal with Website Payment standard or Express checkout

How to use billing agreement with chained payments?

We are setting up our marketplace transactions with PayPal and thus want to use chained payments for simple processing and to prevent being a funds aggregator.
As we want to capture buyers payment method once (upfront) and allow them to buy services from sellers later without entering their payment details every time, PayPal has 2 options: 1) pre-approvals, or 2) billing agreements.
However since buyers should also be able to pay with credit card, we can only use option 2) billing agreements.
Is our understanding correct that billing agreements are not compatible with chained payments?
Also, if they are not compatible, how can we go about it to allow for:
- Users to pay with credit card
- Not have them enter the credit card details every time at the time of purchase
- Use chained payments (prevent funds aggregation which would happen if we receive funds first and payout in a second operation)?
Thanks!
Preapproved Payments is part of the Adaptive Payments platform. Depending on what you're doing with the transaction when the time comes to submit a payment with a preapproval profile you may use a simple payment, parallel payment, or chained payment.
What you're after, billing agreements, is part of the Express Checkout API or Payments Pro. The actual term for what you'll be working with is Reference Transactions.
If you process a credit card directly over Payments Pro (either sale or auth) then you can simply use that transaction ID you get back with the DoReferenceTransaction API at any point in the future to process another transaction automatically.
If you process the original sale or authorization with Express Checkout, that's where you need to include billing agreement parameters in your SetExpressCheckout request to create that billing agreement, but then you'd still use the DoReferenceTransaction API to process future payments.

Paypal DirectPayment automatically calculate shipping cost?

Paypal has this shipping fee calculator that is automatically added when the customer reviewed the purchase in Paypal website.
But that calculator only works for payment with Paypal account (Express Checkout) and doesn't work for Credit Card (Direct Payment) payment.
Must I write my own shipping cost calculator in my app?
Sorry for the broad question, but I can't seem to find this info on Google.
Thanks
The shipping fee calculator only applies to PayPal Payments Standard/Website Payments Standard transactions -- it doesn't work for Express Checkout or PayPal Payments Pro/Website Payments Pro ("Direct Payment") transactions. Unfortunately, this means that you will have to write your own shipping fee calculator.

Detecting cancellation of a paypal billing agreement setup with reference transactions

I am using the 'reference transactions' of the Paypal express checkout api to set up a recurring billing scenario for our customers. I have chosen this method since the amount billed per month will vary and there is no initial payment when entering into the billing agreement.
My question is, can I use the paypal IPN to detect when the user cancels this? I know that if the customer enters into this agreement they have the power to log into their own Paypal account and cancel the agreement. What variables should I be listening for through the IPN?
Whilst I see mention of recurring payments and recurring payment profiles in the IPN documentation these are not actually the same as setting up a recurring billing scenario via reference transactions (recurring payments and reference transactions are in two different parts of the general paypal api documentation).
Enable IPN in your PayPal account , then PayPal will notify you via IPN about the Billing agreement cancel from the customer.
If you include IPN with SetExpressCheckout, it will not work with Reference Transaction. You need to Enable IPN on PayPal site.

Paypal Express Checkout Subscription using Credit Card Payment

Question:
Is it possible to set up a subscription via Paypal api Express Checkout, so you can pay via Credit card and Paypal login. The Paypal login works no problem, but I can not get it to work with credit cards at the moment.
I have set the NVP SOLUTIONTYPE = Sole
I know you can set up a paypal subscription button, but the client want to sell a product (single payment or instalments) and add a subscription if user wants to sign up.
Many thanks for any help.
Llewellyn
UPDATE:
For anyone else who has this problem I got this response back from Paypal:
With subscriptions and Express Checkout, they will be PayPal only. Any time you specify a billing type in your SetExpressCheckout call, it turns it into a PayPal only transaction. The only way you would be able to set up a recurring payment via credit card (without a button) is to use the Website Payments Pro and Pro Recurring Payments. Website Payments Pro would allow the customer to enter their credit card directly on the website for one-time payments and also you can set it up to accept the credit card information for recurring payments. You wouldn't be able to turn that one-time payment into a recurring payment at a later time but if you wanted to set them both up at the start that's certainly possible. Also, you would be able to use reference transactions with your Pro payments as well.
Here is a link to the paypal manual for Paypal Pro.
Be warned, with Paypal Pro you can not accept American Express cards, if your paypal account is not American - which sadly is what I'm trying to do :(
No, this is not possible with Express Checkout Recurring Payments.
You must purchase Direct Payment Recurring Payments (an addon to Website Payments Pro) in order to set up profiles direct via credit card.
Note that Direct Payment Recurring Payments is only available in the US, UK and Canada at the moment.
This is not possible to make direct payment with Express Checkout,for this you have got create and account on paypal and please set only two options to working credit/debit card with Express Checkout.
solutiontype = Sole
landingpage = billing