Closed ghost closed 8 years ago
OK so my first comment is that this isn't actually a support forum. It's a bug tracker, for reporting identified bugs. Especially in the case of integrating with Payum, there's probably not a lot we can do to help. The official Omnipay support forum is in fact StackOverflow so I suggest you re-post your question there, and make sure that it is tagged with both payum and omnipay tags.
My second comment is that the error message doesn't give us enough information to track down what's going on. I suggest you go through the symfony log files to see where the error is being generated, and perhaps add some debug / logging code of your own to see what's going into whatever function is expecting an array and not receiving one. This doesn't specifically look like something wrong inside Omnipay but without a bit of a stack trace it's hard to determine what's going on.
Sorry I can't give you better information.
I have an application in Symfony 2.8 where I get an error when capturing payment via payum - omnipay-bridge and omnipay/targetpay.
When I call my prepareAction I'm getting redirected to an external payment form at the targetpay website. When I cancel (cancel = pay in testmode) I'm redirected back to my site with the following exception:
Invalid input given. Should be an array or instance of \Traversable (500 Internal Server Error)
When I refresh the page I'm ending up on the final route 'bsdb_payment_membership_status' (see PaymentController) and the status of my payment is 'new'. What is wrong with my payment process?
My composer.json looks like this:
My config.yml looks like this:
I have created a custom PaymentBundle with:
Entity PaymentToken
Entity PaymentDetails
Controller PaymentController
Thank you for your expertise!