/// <summary>
        /// Handles the specified command.
        /// </summary>
        /// <param name="command">The command.</param>
        public void Handle(PayPalGetPermissionsRedirectUrlCommand command)
        {
            var commandToSend = new PayPalGetPermissionsRedirectUrl3dPartyCommand {
                Callback = command.Callback
            };

            SendCommand(ThirdPartyService.Address, commandToSend, command);
        }
Ejemplo n.º 2
0
        public async void Handle(PayPalGetPermissionsRedirectUrl3dPartyCommand command)
        {
            var url = await PayPalService.GetPermissionsRedirectUrl(command.Callback);

            InfoAccumulator info = new InfoAccumulator();

            SendReply(info, command, resp => resp.PermissionsRedirectUrl = url);
        }