thephpleague / omnipay-worldpay

WorldPay driver for the Omnipay PHP payment processing library
MIT License
23 stars 18 forks source link

Values not being passed to WorldPay from Sylius website. #28

Open KirbyFox opened 7 years ago

KirbyFox commented 7 years ago

Within OmnipayBridge/Action/OffsiteCaptureAction.php I had to add the following line of code to the execute() function in order to get the cartId passed to WorldPay.

$details['transactionId'] = $request->getToken()->getDetails()->getId();

However, the installationId and accountId are still not being passed to WorldPay.

I've tried adding the following lines to the execute() function but those values are still not being passed and the payment fails.

$details['installationId'] = $this->omnipayGateway->getInstallationId(); $details['accountId'] = $this->omnipayGateway->getAccountId();

https://github.com/Payum/OmnipayBridge/blob/master/src/Action/OffsiteCaptureAction.php

Please could someone suggest what I am doing wrong.