Mangopay / mangopay2-php-sdk

PHP SDK for MANGOPAY
https://packagist.org/packages/mangopay/php-sdk-v2
MIT License
122 stars 133 forks source link

Attempted to call an undefined method named "GetSubObjects" of class "MangoPay\PayInWebExtendedView" #411

Closed H4wKs closed 4 years ago

H4wKs commented 4 years ago

Hi guys,

I have the following error when I try to get an extended view of a payin:

In ApiBase.php line 389:
  Attempted to call an undefined method named "GetSubObjects" of class "MangoPay\PayInWebExtendedView".

My service function look like this:

public function viewExtendedPayIn($payIn) {
        return ($this->mangoPayApi->PayIns->GetExtendedCardView($payIn));
}

If I run {{SERVER_URL}}/{{VERSION}}/{{CLIENT_ID}}/payins/card/web/{{PAYIN-EUR}}/extended in postman for the same Payin, it work just fine.

I am using the lasted update of the MangoPay SDK package: mangopay/php-sdk-v2 3.1.0 PHP SDK for MANGOPAY

Running on Symfony 4.4.X but that shouldn't change anything about this.

The classic PayIns view as following is working fine too. $this->mangoPayApi->PayIns->Get($payInId)); But I really need the information available from the extended view.

Thanks for your help / feedback

mangomaxoasis commented 4 years ago

Hi @H4wKs We're looking into it Max

H4wKs commented 4 years ago

@mangomaxoasis I fixed the issue and made a PR #413 update: Can you restart the travis build test that failed in that PR as this is not an issue with the code itself. Thanks.