mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
49ef13e876
Summary: Ref T2787. I //think// we could also use WePay as a recurring payment provider, but this is somewhat messy (OAuth + requires account) -- basically it's "add a WePay account" instead of "add a credit card". The WePay checkout workflow is a bit upsell-y but basically reasonable. I like that their API just has a `request($method, $params)` method instead of 30,000 lines of methods for each request type. I did hit one bug; I'll send a pull for that. Test Plan: Got as far as the charge callback in testing; the rest isn't implemented for any provider yet. Reviewers: btrahan, vrana, chad Reviewed By: btrahan CC: aran Maniphest Tasks: T2787 Differential Revision: https://secure.phabricator.com/D5982
20 lines
367 B
PHP
20 lines
367 B
PHP
<?php
|
|
require './_shared.php';
|
|
?>
|
|
|
|
<h1>WePay Demo App</h1>
|
|
<?php if (empty($_SESSION['wepay_access_token'])): ?>
|
|
|
|
<a href="login.php">Log in with WePay</a>
|
|
|
|
<?php else: ?>
|
|
|
|
<a href="user.php">User info</a>
|
|
<br />
|
|
<a href="openaccount.php">Open new account</a>
|
|
<br />
|
|
<a href="accountlist.php">Account list</a>
|
|
<br />
|
|
<a href="logout.php">Log out</a>
|
|
|
|
<?php endif; ?>
|