Skip to content
A PowerShell module for interacting with the PayPal API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.vscode
Build/PoShPal
src
.gitattributes
.gitignore
LICENSE
Module.PSDeploy.ps1
PoShPal.build.ps1
README.md
ScriptAnalyzerSettings.psd1
build.ps1
build.psake.ps1
build.settings.ps1
psake.ps1

README.md

PoShPal

THIS MODULE IS UNDER DEVELOPMENT. Use at your own risk.

This module is designed to work with the PayPal API. It is under development (PRs welcome!) and currently supports authentication and retrieving order information. Nothing special yet.

Only an experimental build has been done with some minor testing.

If you would like to contribute to PoShPal, refer CONTRIBUTING.md

How to set up

Download or clone this repo and:

Import-Module $ModulePath\src\PoShPal.psm1

Before you can use this module, you must first have a PayPall account and create an application here: https://developer.paypal.com/developer/applications

You will need to open that application, switch to the 'Live' version and collect the 'Client ID' and 'Secret' from that screen.

How to authenticate

With the above mentioned information in hand, get a user token:

Get-PayPalAccessToken -ClientID $ClientID -ClientSecret $ClientSecret

This will store your credentials securely in the registry and in a global variable available to the other cmdlets.

How to query

To get information on a single sale from PayPal (you being the seller):

Get-PayPalSale -SaleID 'XXXXXXXXXXXXXXXXX'

Or to query your transaction history for the past week:

Get-PayPalTransactions -StartDate (Get-Date).AddDays(-7)
You can’t perform that action at this time.