Skip to content

getCustomer exception ? could be better if returns null (i think) #9

@rycks

Description

@rycks

Il some race conditions there is a problem with php lib, for example when stancer server returns that sort of data:

    {
      "amount": 100,
      "auth": null,
      "capture": true,
      "country": "FR",
      "created": 1681876445,
      "currency": "eur",
      "date_bank": 1681855200,
      "date_paym": 1681768800,
      "description": null,
      "fee": 2,
      "id": "paym_sqxxxxxxxxxxxxxxxxxxx",
      "method": "card",
      "order_id": null,
      "response": "00",
      "status": "captured",
      "unique_id": "xxxxxxxxxxx"
    },

Then, if i call $payment->getCustomer() result is "Stancer\Exceptions\Exception exception occurs : Missing card details" but the documentation says that function will return Stancer\Customer or null

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