Creative Department Development Testing

Test Data:

[ Snippet (include php file[…’/PushPay-Project-Giving/php/wpgetapi-test.php’]) ]

get-giving-projects.php has been accessed!

Total # of payment pages: 2

The current page number is: 1

Getting transactions from page 0

The current page number is: 2

Getting transactions from page 1

The $runningTotals array is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}

getGivingProject function has been called.

[
    {
        "post_id": 26299,
        "pushpay_fund_key": ""
    },
    {
        "post_id": 25761,
        "pushpay_fund_key": null
    },
    {
        "post_id": 25509,
        "pushpay_fund_key": "H5DrLplyqvW2CXnhqYdtbQ"
    },
    {
        "post_id": 25510,
        "pushpay_fund_key": ""
    },
    {
        "post_id": 25495,
        "pushpay_fund_key": null
    },
    {
        "post_id": 25512,
        "pushpay_fund_key": null
    },
    {
        "post_id": 25492,
        "pushpay_fund_key": ""
    },
    {
        "post_id": 25503,
        "pushpay_fund_key": null
    },
    {
        "post_id": 25033,
        "pushpay_fund_key": null
    },
    {
        "post_id": 25513,
        "pushpay_fund_key": null
    },
    {
        "post_id": 25511,
        "pushpay_fund_key": ""
    },
    {
        "post_id": 25491,
        "pushpay_fund_key": null
    }
]

The matching entry is: No result. Houston, we have a problem.

The matching entry is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}

The matching entry is: No result. Houston, we have a problem.

The matching entry is: No result. Houston, we have a problem.

The matching entry is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}

The matching entry is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}

The matching entry is: No result. Houston, we have a problem.

The matching entry is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}

The matching entry is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}

The matching entry is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}

The matching entry is: No result. Houston, we have a problem.

The matching entry is:

{
    "H5DrLplyqvW2CXnhqYdtbQ": {
        "totalAmount": 32.46000000000000085265128291212022304534912109375,
        "fundName": "Embassy of Hope",
        "formattedTotalAmount": "32.46"
    },
    "-4xGjMZdtVK_WKcajc6bQQ": {
        "totalAmount": 112.1300000000000096633812063373625278472900390625,
        "fundName": "Tithes",
        "formattedTotalAmount": "112.13"
    },
    "N5P9ZLqo5XG_JMRRWEVVBw": {
        "totalAmount": 63.08999999999996788346834364347159862518310546875,
        "fundName": "Missions",
        "formattedTotalAmount": "63.09"
    },
    "rpZRs4dGgM7xcHCbsw2PyQ": {
        "totalAmount": 53.21000000000000085265128291212022304534912109375,
        "fundName": "Other",
        "formattedTotalAmount": "53.21"
    }
}