sdk-php-shop icon indicating copy to clipboard operation
sdk-php-shop copied to clipboard

Invalide Page Token TransactionLineRequest

Open akkushopJK opened this issue 2 years ago • 2 comments

Hi,

We always get the error "Invalide Page Token" when we try to seek through results

$request = new \Mirakl\MMP\Shop\Request\Payment\Transaction\TransactionLineRequest();
$request->setDateCreatedFrom(new \Datetime('-1 Month'));
$result = $api->getTransactionLine($request);

$request = new \Mirakl\MMP\Shop\Request\Payment\Transaction\TransactionLineRequest();
$request->setPageToken($result->getNextPageToken());
$result = $api->getTransactionLine($request);

is there any magic to to that?

akkushopJK avatar Jun 17 '22 09:06 akkushopJK