PayPal
In this section, we present how to connect PayPal to MindsDB.
PayPal is an online payment system that makes paying for things online and sending and receiving money safe and secure.
Data from PayPal can be utilized within MindsDB to train models and make predictions about your transactions.
Connection
This handler is implemented using PayPal-Python-SDK, the Python SDK for PayPal RESTful APIs.
The required arguments to establish a connection are as follows:
mode
: The mode of the PayPal API. Can besandbox
orlive
.client_id
: The client ID of the PayPal API.client_secret
: The client secret of the PayPal API.
To connect to PayPal using MindsDB, the following CREATE DATABASE statement can be used:
Check out this guide on how to create client credentials for PayPal.
Usage
Now, you can query PayPal as follows:
Payments:
Invoices:
Subscriptions:
Orders:
Payouts:
You can also run more advanced queries on your data:
Payments:
Invoices:
Subscriptions:
Orders:
Payouts:
Supported Tables
The following tables are supported by the PayPal handler:
payments
: payments made.invoices
: invoices created.subscriptions
: subscriptions created.orders
: orders created.payouts
: payouts made.