/payments make amount and code optional
When we recover from the paypal checkout without postMessage (for example in tor browser) we only have the paypal transaction details but neither the amount nor the transaction code. Those details are returned by the backend paypal api call so could be optional.