BobRupholdt / api

Automated Paypal InvoicingUsing Google Apps Script we will automate some of the task like creating Paypal invoices, Email a list of unpaid invoices, and the list of paid Invoices. Not only does this automates few of the tasks but also able to make a third party paypal application without much code. We will do basic data analytics, like the monthly revenue.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API(Automated Paypal Invoicing) using Google App script

Getting Started:

The code in this repository will give you an idea on how we can use google app script to automate task. It will also give on how to use paypal resp api. How to make outh2.0 authentication in google app script. And on how to make paypal rest api call using google app script.
You need get the client id and secret using the following link. You may also use the sandbox account for testing purpose.

sendInvoice.gs: This is triggered on form submit event. for more details on this event, click the link. From the information that it gets from the google form, it uses the paypal rest api to get the [access token)(https://developer.paypal.com/docs/api/overview/#authentication-and-authorization), create invoice draft, and then send the invoice.
generatemonthlyRevenueSpreadsheet.gs: This is triggered on open event. for more details on this event, click the link. It uses the paypal rest api to get the [access token)(https://developer.paypal.com/docs/api/overview/#authentication-and-authorization), and get all the paid invoice from paid invoice api(This information is gathered using several api calls instead just one), and then using this information, we calculate the monthwise revenue. We just append this data to a sheet using Spreadsheet Service.
generatePaidInvoiceSpreadsheet.gs: This is triggered on open event. for more details on this event, click the link. It uses the paypal rest api to get the [access token)(https://developer.paypal.com/docs/api/overview/#authentication-and-authorization), and get last 50 paid invoice from search invoice api and then we just append this data to a sheet using Spreadsheet Service.
generateUnPaidInvoiceSpreadsheet.gs: This is triggered on open event. for more details on this event, click the link. It uses the paypal rest api to get the access token, and get last 50 unpaid invoice from search invoice api and then we just append this data to a sheet using Spreadsheet Service.

Description:

Using Google Apps Script we will automate some of the task like creating Paypal invoices, Email a list of unpaid invoices, and the list of paid Invoices. Not only does this automates few of the tasks but also able to make a third party paypal application without much code. We will do basic data analytics, like the monthly revenue.

  • Substitute of third party(android, iOS, web) Paypal application
  • Ability to make reports/spreadsheets. Can apply google's Access Control. eg. grant permission only to selected people.
  • Basic Data Analytics eg. Monthly Sales Report From Papal
  • Report of Unpaid Paypal Invoices
  • Report of Paid Paypal Invoices
  • Using Google Form to Create Paypal invoice.
  • Send notification email timely triggered.
  • Much more, Could be tailored according to User's specification.

Monthly Sales Report

Report of Unpaid Paypal Invoices

Report of Paid Paypal Invoices

Google Form to Create Paypal invoice

Example of an invoice sent to hamza.agreed@gmail.com worth of 2 dollars.

Confirmation of the Email Sent

About

Automated Paypal InvoicingUsing Google Apps Script we will automate some of the task like creating Paypal invoices, Email a list of unpaid invoices, and the list of paid Invoices. Not only does this automates few of the tasks but also able to make a third party paypal application without much code. We will do basic data analytics, like the monthly revenue.


Languages

Language:JavaScript 100.0%