Skip to content

Error occurs when creating subscription without accepted mandate  #2

@vladshut

Description

@vladshut

I received subscription from EcurringAPI with no accepted mandate. Json fragment:
"mandate_code": "ECUR-1",
"mandate_accepted": false,
"mandate_accepted_date": null,

Error occurs when creating subscription from received json response.

Error:
TypeError: DateTimeImmutable::__construct() expects parameter 1 to be string, null given
/vendor/laulamanapps/ecurring-api/src/Resource/Factory/SubscriptionFactory.php:59
/vendor/laulamanapps/ecurring-api/src/Resource/Factory/SubscriptionFactory.php:36

I have already created pull request to fix this issue. Please review it #1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions