# \[PHP\] Help! Member Payment Info Fetched Doesn't Belong To My Patreon Page

**URL:** <https://www.patreondevelopers.com/t/php-help-member-payment-info-fetched-doesnt-belong-to-my-patreon-page/8526>\
**Category:** Uncategorized\
**Created:** [January 23, 2024, 12:47am UTC](https://www.patreondevelopers.com/t/php-help-member-payment-info-fetched-doesnt-belong-to-my-patreon-page/8526 "2024-01-23T00:47:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloo22](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@helloo22](https://www.patreondevelopers.com/u/helloo22)\
**Post date:** [January 23, 2024, 12:47am UTC](https://www.patreondevelopers.com/t/php-help-member-payment-info-fetched-doesnt-belong-to-my-patreon-page/8526/1 "2024-01-23T00:47:06Z")

</div>

I’m using patreon php framework. I was trying to fetch user last payment date and status , member data was successfully fetched but the payment detail did not belong to my patreaon page.

What is the correct way to get the payment data for my Patrean page? The following is my code .

```auto
 $patreon_data = array(
                            "patreon_id" => $current_member["data"]["id"],
                            "full_name" => $current_member["data"]["attributes"]["full_name"],
                            "image_url" => $current_member["data"]["attributes"]["image_url"],
                            "is_email_verified" => (int) $current_member["data"]["attributes"]["is_email_verified"],
                            "email" => $current_member["data"]["attributes"]["email"],
                            "membership_id" => $current_member["data"]["relationships"]["memberships"]["data"][0]["id"],
                            "last_charge_date" => $current_member["included"][0]["attributes"]["last_charge_date"],
                            "last_charge_status" => $current_member["included"][0]["attributes"]["last_charge_status"],
                            "patron_status" => $current_member["included"][0]["attributes"]["patron_status"],
                            "tier_type" => $current_member["included"][1]["attributes"]["title"],
                        );

```

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [January 30, 2024, 8:53pm UTC](https://www.patreondevelopers.com/t/php-help-member-payment-info-fetched-doesnt-belong-to-my-patreon-page/8526/2 "2024-01-30T20:53:59Z")

</div>

If you have gotten your users to authorize memberships scope, then you would get all the memberships of the user and not only your own. You would have to match the campaign from among dat data to your own campaign first.

If you just want to get your own campaign’s memberships, just use your creator’s access token.
