Skip to content

Error 422: Unprocessable Entity #57

@robinbonnes

Description

@robinbonnes

When I make a purchase request like this:

$purchase_params = [
                            'amount' => '10.00',
                            'currency' => 'EUR',
                            'description' => 'Test',
                            'returnUrl' => '/return',
                            'notifyUrl' => '/notify',
                            'paymentMethod' => 'ideal',
                            'metadata' => ['order_id' => '1'],
                        ];
$gateway->purchase($purchase_params)->send();

I get the following response:

  #data: array:5 [▼
    "status" => 422
    "title" => "Unprocessable Entity"
    "detail" => "The amount is required for payments"
    "field" => "amount"
    "_links" => array:1 [▼
      "documentation" => array:2 [▼
        "href" => "https://docs.mollie.com/guides/handling-errors"
        "type" => "text/html"
      ]
    ]
  ]

Any idea?

Having the following libraries installed by composer:

  •     "omnipay/mollie": "^5.0",
    
  •     "league/omnipay": "^3.0"
    

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