PayPal
PayPal é um provedor de pagamento online americano disponível em todo o mundo e um dos poucos que não cobra taxa de assinatura.
Configuração no PayPal
Click Apps & Credentials and click Create App.
Enter an App Name and click Create App.
Copy the Client ID and Secret and save them for later <payment_providers/paypal/configuration-odoo>.
Se estiver testando o PayPal, acesse sua conta Sandbox do PayPal <payment_providers/paypal/testing> e configure o formato de codificação da sua conta sandbox.
Configuração no Odoo
Navigate to the payment provider PayPal <payment_providers/add_new>.
In the Credentials tab, enter the Email linked to your PayPal account, then fill in the Client ID and Client Secret fields with the values you saved at the step payment_providers/paypal/configuration-paypal.
Click Generate your webhook to create the Webhook ID.
Set the State field to Enabled, and make sure the PayPal payment provider is Published.
Configure the remaining options as desired.
Teste
O PayPal fornece duas contas sandbox que você pode usar para simular transações reais:
A business account (to use as the merchant account, e.g., ab-1abc12345678@business.example.com);
A default personal account (to use as the shopper account, e.g., ba-9cba87654321@personal.example.com).
Para testar o fluxo de pagamento do PayPal no Odoo:
Log into the Paypal Developer Site using your PayPal credentials and go to .
Click the fa-ellipsis-v (ellipsis) icon next to the sandbox business account and select View/Edit account.
Copy the Email, Client ID, and Secret and save them for the next step.
In Odoo, configure the PayPal payment provider <payment_providers/paypal/configuration-odoo> with the values saved at the previous step and set the State field to Test Mode.
Você pode então executar uma transação de teste do Odoo usando a conta pessoal de sandbox.
payment_providers/test-mode