Closed JJonesFK closed 3 months ago
@JJonesFK
Looking at this again, I can see that the value for VendorTxCode
(as presented to Opayo) is derived from the transactionId
parameter.
TxType
is not required, it's set by the refund()
method. vendorTxCode
is not required.
Try this as your params array:
$params = [
'transactionReference' => $order->VPSTxId,
'amount' => $refundAmount,
'currency' => $order->currency,
'description' => substr('Refund for Order #' . $reference['VPSTxId'], 0, 90),
'transactionId' => $vendorTxCode
];
Thank you!
I didnt realise i need the transactionId.
Heyo,
Im having an issues where my VendorTxCode is being emptyed/removed on the send() from a refund.
Here the code im using
Here a screen shot of the params array and the $gateway->refund($params)->send() in a dd()
Im completely lost on what to do here. I get a 3009 : Missing VendorTxCode from the sagepay server response