You must move
```
$paymentDetails->setRegisterToMerchantName('foo');
$paymentDetails->setToken('adsfasdf');
```
to
```
$request->setRegisterToMerchantName('foo');
$request->setToken('adsfasdf');
```