Skip to content

Trying to get property of non-object in remove customer BaseService.php #9

Description

@kitro

Hi all

Thank you first for this helpful package the make life easier to deal with gocardless.

I just tried to remove a customer using the remove method like this:
$cliene->customers()->remove('CUXXXXXXX')

I got this error
Trying to get property of non-object vendor/gocardless/gocardless-pro/lib/Services/BaseService.php:86 vendor/gocardless/gocardless-pro/lib/Services/BaseService.php(65): GoCardlessPro\\Services\\BaseService->getUnenvelopedBody(NULL) gocardless/gocardless-pro/lib/Services/CustomersService.php(171)

I think the issue is the remove customer request is performed as DELETE, and the response from the api is null but in BaseService.php line 86 it's decoded the response to json but the response here is null.

The package version is "nestednet/gocardless-laravel": "^0.2.0"

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions