This module is a wrapper that enables you to make requests and implement web hooks with the PayWhirl API from within ProcessWire

PayWhirlAPI

ProcessWire module wrapper for PayWhirl API

System requirements


  • PHP 5.6.4 or greater

General information


This module enables you to access a PayWhirl account to send/retrieve data to/from a ProcessWire website.

First steps


  • Visit (https://api.paywhirl.com/) and read the documentation.
  • Log into PayWhirl, go to 'Developers' and create a new API Key and API Secret.
  • Make a note of the App key and the App secret.

Installation


  • Download the zip file into your site/modules folder then expand the zip file.
  • Next, login to ProcessWire > go to Modules > click "Refresh". You should see a note that a new module was found. Install the PayWhirlAPI module.
  • Configure the module with your App key and App secret

Usage


Read the PayWhirl API documentation!

An example template for logging in from ProcessWire:

<?php namespace ProcessWire;

use PayWhirl;

$payWhirl = $modules->get('PayWhirlAPI')->login();

To get an array of the currently logged-in user's subscriptions:

$data = array('keyword' => $user->email);
$userSubs = $payWhirl->getSubscriptions($payWhirl->getCustomers($data)[0]->id);

Important


At the time of creating this module, API access to PayWhirl is limited to paid PayWhirl accounts! Should you get the message "Invalid Authorization. Your account does not have access to the PayWhirl API." you're probably on the free PayWhirl plan. You'll need to upgrade or ask PayWhirl management.

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #521
    In the 521st issue of ProcessWire Weekly we'll check out the latest weekly update from Ryan, introduce a new third party module called FormBuilderHTMX, and more. Read on!
    Weekly.pw / 5 May 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.