Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 422: Unprocessable Entity #57

Open
robinbonnes opened this issue Sep 24, 2018 · 0 comments
Open

Error 422: Unprocessable Entity #57

robinbonnes opened this issue Sep 24, 2018 · 0 comments

Comments

@robinbonnes
Copy link

robinbonnes commented Sep 24, 2018

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"
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant