Upon successful payment, the user will be redirected back to the merchant's website provided by the redirect URL provided during the request. This class represents those parameters to be used in MVC controllers.
示例#1
0
        public virtual bool VerifyAuthenticity(DwollaRedirect receivedRedirect)
        {
            this.ValidatorFactory.GetValidator <DwollaServerCheckoutApi>()
            .ValidateAndThrow(this);

            return(DwollaSignatureUtil.VerifySignature(this.AppSecret, receivedRedirect.Signature, receivedRedirect.CheckoutId, receivedRedirect.Amount));
        }
示例#2
0
        public virtual bool VerifyAuthenticity( DwollaRedirect receivedRedirect )
        {
            this.ValidatorFactory.GetValidator<DwollaServerCheckoutApi>()
                .ValidateAndThrow( this );

            return DwollaSignatureUtil.VerifySignature( this.AppSecret, receivedRedirect.Signature, receivedRedirect.CheckoutId, receivedRedirect.Amount );
        }