Skip to content

Instantly share code, notes, and snippets.

<?php
// WePay PHP SDK - http://git.io/mY7iQQ
require 'wepay.php';
// application settings
$client_id = 123456789;
$client_secret = "1a3b5c7d9";
// change to useProduction for live environments
@wehub
wehub / gist:3ee3e987b08f7213d412a56292425791
Last active April 5, 2022 22:02
payouts.completed.json
{
"owner": {
"id": "{account-id}",
"resource": "accounts",
"path": "/accounts/{account-id}"
},
"amount": 20000,
"create_time": 28800,
"resource": "payouts",
"txnr_payout": {
{
"owner":{
"id":{your-app-id},
"resource":"applications",
"path":null
},
"path":"/payment_methods/{payment-method-id}",
"credit_card":{
"card_holder":{
"holder_name":"Melvin Mouse",
{
"topic_payload": {
"payments": {
"enabled": true,
"current_issues": [],
"upcoming_issues": {}
},
"payouts": {
"enabled": false,
"current_issues": [{
{
"id": "{NOTIFICATION-ID}",
"resource": "notifications",
"path": "/notifications/{NOTIFICATION-ID}",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "payments.completed",
{
"id": "{NOTIFICATION-ID}",
"resource": "notifications",
"path": "/notifications/{NOTIFICATION-ID}",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "accounts.negative_balance",
{
"id": "{NOTIFICATION-ID}",
"resource": "notifications",
"path": "/notifications/{NOTIFICATION-ID}",
"owner": {
"id": "121212",
"resource": "applications",
"path": null
},
"topic": "accounts.capabilities.updated",